We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c021e53 commit fe5cb1aCopy full SHA for fe5cb1a
src/test/compile-fail/outlives-associated-types.rs
@@ -16,9 +16,8 @@
16
// https://github.com/rust-lang/rfcs/blob/master/text/2093-infer-outlives.md#example-1-a-reference
17
18
#[rustc_outlives]
19
-struct Direct<'a, T> {
20
- // inferred: `T: 'a`
21
- field: &'a T //~ ERROR generic reference may outlive the data it points to
+struct Direct<'a, T> { //~ ERROR 19:1: 21:2: [] [E0640]
+ field: &'a T
22
}
23
24
fn main() { }
0 commit comments