]> git.lizzy.rs Git - rust.git/blob - src/test/ui/span/issue-29106.nll.stderr
Hide some lints which are not quite right the way they are reported to the user
[rust.git] / src / test / ui / span / issue-29106.nll.stderr
1 error[E0597]: `x` does not live long enough
2   --> $DIR/issue-29106.rs:26:26
3    |
4 LL |         y = Arc::new(Foo(&x));
5    |                          ^^ borrowed value does not live long enough
6 LL |     }
7    |     -
8    |     |
9    |     borrowed value only lives until here
10    |     borrow later used here, when `y` is dropped
11
12 error[E0597]: `x` does not live long enough
13   --> $DIR/issue-29106.rs:33:25
14    |
15 LL |         y = Rc::new(Foo(&x));
16    |                         ^^ borrowed value does not live long enough
17 LL |     }
18    |     -
19    |     |
20    |     borrowed value only lives until here
21    |     borrow later used here, when `y` is dropped
22
23 error: aborting due to 2 previous errors
24
25 For more information about this error, try `rustc --explain E0597`.