summary refs log tree commit diff
path: root/tests/ui/impl-trait/in-trait/foreign-dyn-error.rs
blob: 600dba03b74b97c9d04b2134d8d9671f68f1115c (plain)
1
2
3
4
5
6
7
8
//@ aux-build: rpitit.rs

extern crate rpitit;

fn main() {
    let _: &dyn rpitit::Foo = todo!();
    //~^ ERROR the trait `Foo` cannot be made into an object
}