2019-05-28 13:46:13 -05:00
|
|
|
#![allow(bare_trait_objects)]
|
|
|
|
|
2016-06-01 09:30:13 -05:00
|
|
|
trait Foo {}
|
|
|
|
|
|
|
|
struct Bar<'a> {
|
2017-11-20 06:13:27 -06:00
|
|
|
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
|
2016-06-01 09:30:13 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
}
|