mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
14 lines
277 B
Rust
14 lines
277 B
Rust
#![allow(bare_trait_objects)]
|
|
|
|
trait Foo {}
|
|
|
|
struct Bar<'a> {
|
|
w: &'a Foo + Copy, //~ ERROR expected a path
|
|
x: &'a Foo + 'a, //~ ERROR expected a path
|
|
y: &'a mut Foo + 'a, //~ ERROR expected a path
|
|
z: fn() -> Foo + 'a, //~ ERROR expected a path
|
|
}
|
|
|
|
fn main() {
|
|
}
|