]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/issue-98500.rs
Rollup merge of #105955 - Nilstrieb:no-trivial-opt-wrappers-we-have-field-accesses...
[rust.git] / src / test / ui / suggestions / issue-98500.rs
1 // aux-build:not-object-safe.rs
2
3 extern crate not_object_safe;
4
5 pub trait B where
6     Self: not_object_safe::A,
7 {
8     fn f2(&self);
9 }
10
11 struct S(Box<dyn B>);
12 //~^ ERROR the trait `B` cannot be made into an object
13
14 fn main() {}