rust/tests/ui/impl-trait/in-trait/foreign-dyn-error.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
161 B
Rust
Raw Normal View History

2023-04-30 16:52:35 -05:00
// aux-build: rpitit.rs
extern crate rpitit;
fn main() {
let _: &dyn rpitit::Foo = todo!();
//~^ ERROR the trait `Foo` cannot be made into an object
}