blob: b6fd9e7c23fe3afe4bfe7b144da2e7ad7aa18281 [file] [log] [blame]
//@ aux-build:not-object-safe.rs
extern crate not_object_safe;
pub trait B where
Self: not_object_safe::A,
{
fn f2(&self);
}
struct S(Box<dyn B>);
//~^ ERROR the trait `B` cannot be made into an object
fn main() {}