]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/mir_check_cast_unsize.stderr
Rollup merge of #83807 - sjakobi:77548-remove-ignore-annotations, r=Mark-Simulacrum
[rust.git] / src / test / ui / nll / mir_check_cast_unsize.stderr
1 error: lifetime may not live long enough
2   --> $DIR/mir_check_cast_unsize.rs:8:5
3    |
4 LL | fn bar<'a>(x: &'a u32) -> &'static dyn Debug {
5    |        -- lifetime `'a` defined here
6 LL |     x
7    |     ^ returning this value requires that `'a` must outlive `'static`
8    |
9    = help: consider replacing `'a` with `'static`
10
11 error: aborting due to previous error
12