]> git.lizzy.rs Git - rust.git/blob - src/test/ui/impl-header-lifetime-elision/dyn-trait.nll.stderr
Change NLL compare mode to borrowck=migrate.
[rust.git] / src / test / ui / impl-header-lifetime-elision / dyn-trait.nll.stderr
1 error: borrowed data escapes outside of function
2   --> $DIR/dyn-trait.rs:32:5
3    |
4 LL | fn with_dyn_debug_static<'a>(x: Box<dyn Debug + 'a>) {
5    |                              - `x` is a reference that is only valid in the function body
6 LL |     static_val(x); //~ ERROR cannot infer
7    |     ^^^^^^^^^^^^^ `x` escapes the function body here
8
9 error: aborting due to previous error
10