]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/issue-98500.rs
Rollup merge of #106670 - albertlarsan68:check-docs-in-pr-ci, r=Mark-Simulacrum
[rust.git] / tests / 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() {}