]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/issue-57280-1-flipped.stderr
Auto merge of #105145 - Ayush1325:sequential-remote-server, r=Mark-Simulacrum
[rust.git] / src / test / ui / nll / issue-57280-1-flipped.stderr
1 error: lifetime may not live long enough
2   --> $DIR/issue-57280-1-flipped.rs:17:9
3    |
4 LL | fn foo<'a>(x: &'static u32) {
5    |        -- lifetime `'a` defined here
6 LL |     match x {
7 LL |         <() as Foo<'a>>::C => { }
8    |         ^^^^^^^^^^^^^^^^^^ type annotation requires that `'a` must outlive `'static`
9
10 error: aborting due to previous error
11