summaryrefslogtreecommitdiffstats
path: root/tests/ui/error-codes/E0261.rs
blob: f05e09aa0da663422ae81f8a237cd9ce8df3711a (plain)
1
2
3
4
5
6
7
8
9
fn foo(x: &'a str) { } //~ ERROR E0261
                       //~| undeclared lifetime

struct Foo {
    x: &'a str, //~ ERROR E0261
                //~| undeclared lifetime
}

fn main() {}