2024-02-16 20:02:50 +00:00
|
|
|
//@ aux-build:not-object-safe.rs
|
2022-06-25 21:59:45 +00:00
|
|
|
|
|
|
|
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() {}
|