rust/tests/ui/error-codes/E0106.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
404 B
Rust
Raw Normal View History

2016-05-25 11:58:07 +00:00
struct Foo {
x: &bool,
//~^ ERROR E0106
2016-05-25 11:58:07 +00:00
}
enum Bar {
A(u8),
B(&bool),
//~^ ERROR E0106
2016-05-25 11:58:07 +00:00
}
type MyStr = &str;
//~^ ERROR E0106
2016-05-25 11:58:07 +00:00
struct Baz<'a>(&'a str);
struct Buzz<'a, 'b>(&'a str, &'b str);
struct Quux {
baz: Baz,
//~^ ERROR E0106
//~| expected named lifetime parameter
buzz: Buzz,
//~^ ERROR E0106
//~| expected 2 lifetime parameters
}
2016-05-25 11:58:07 +00:00
fn main() {
}