mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +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() {
|
|
}
|