2018-05-19 01:13:53 +03:00
|
|
|
#![allow(bare_trait_objects)]
|
2014-05-05 18:56:44 -07:00
|
|
|
|
2013-06-19 13:55:30 -04:00
|
|
|
struct Foo;
|
|
|
|
|
2017-01-16 23:33:45 +03:00
|
|
|
fn foo(_x: Box<Foo + Send>) { } //~ ERROR expected trait, found struct `Foo`
|
2013-06-19 13:55:30 -04:00
|
|
|
|
2017-10-10 17:33:19 +03:00
|
|
|
type A<T> = Box<dyn Vec<T>>; //~ ERROR expected trait, found struct `Vec`
|
|
|
|
|
2013-06-19 13:55:30 -04:00
|
|
|
fn main() { }
|