]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0261.rs
Merge commit 'f2cdd4a78d89c009342197cf5844a21f8aa813df' into sync_cg_clif-2022-04-22
[rust.git] / src / test / ui / error-codes / E0261.rs
1 fn foo(x: &'a str) { } //~ ERROR E0261
2                        //~| undeclared lifetime
3
4 struct Foo {
5     x: &'a str, //~ ERROR E0261
6                 //~| undeclared lifetime
7 }
8
9 fn main() {}