]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/user-annotations/pattern_substs_on_tuple_struct.stderr
Fix a few tests with target-specific output
[rust.git] / src / test / ui / nll / user-annotations / pattern_substs_on_tuple_struct.stderr
1 error[E0597]: `y` does not live long enough
2   --> $DIR/pattern_substs_on_tuple_struct.rs:7:19
3    |
4 LL |     let foo = Foo(&y);
5    |                   ^^ borrowed value does not live long enough
6 ...
7 LL | }
8    | - `y` dropped here while still borrowed
9    |
10    = note: borrowed value must be valid for the static lifetime...
11
12 error[E0597]: `y` does not live long enough
13   --> $DIR/pattern_substs_on_tuple_struct.rs:14:19
14    |
15 LL |     let foo = Foo(&y);
16    |                   ^^ borrowed value does not live long enough
17 ...
18 LL | }
19    | - `y` dropped here while still borrowed
20    |
21    = note: borrowed value must be valid for the static lifetime...
22
23 error: aborting due to 2 previous errors
24
25 For more information about this error, try `rustc --explain E0597`.