summaryrefslogtreecommitdiffstats
path: root/tests/ui/impl-trait/in-trait/foreign-dyn-error.rs
blob: ecb5e62c433a0c9302852260f173b0782b0cdd50 (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
}