summaryrefslogtreecommitdiffstats
path: root/src/test/ui/suggestions/issue-98500.rs
blob: a2717fd9206d10d128d9cdd1ab97d7e10d018d8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// 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() {}