2024-10-09 23:31:01 +02:00
|
|
|
//@ aux-build:dyn-incompatible.rs
|
2022-06-25 14:59:45 -07:00
|
|
|
|
2024-10-09 23:31:01 +02:00
|
|
|
extern crate dyn_incompatible;
|
2022-06-25 14:59:45 -07:00
|
|
|
|
|
|
|
|
pub trait B where
|
2024-10-09 23:31:01 +02:00
|
|
|
Self: dyn_incompatible::A,
|
2022-06-25 14:59:45 -07:00
|
|
|
{
|
|
|
|
|
fn f2(&self);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
struct S(Box<dyn B>);
|
2024-11-20 14:19:36 -08:00
|
|
|
//~^ ERROR the trait `B` is not dyn compatible
|
2022-06-25 14:59:45 -07:00
|
|
|
|
|
|
|
|
fn main() {}
|