rust/tests/ui/suggestions/issue-98500.rs
2024-10-10 01:13:29 +02:00

15 lines
230 B
Rust

//@ aux-build:dyn-incompatible.rs
extern crate dyn_incompatible;
pub trait B where
Self: dyn_incompatible::A,
{
fn f2(&self);
}
struct S(Box<dyn B>);
//~^ ERROR the trait `B` cannot be made into an object
fn main() {}