rust/src/test/ui/error-codes/E0106.rs

27 lines
398 B
Rust
Raw Normal View History

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