]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/object-unsafe-trait-should-use-where-sized.fixed
Rollup merge of #107632 - ameknite:issue-107622-fix, r=jyn514
[rust.git] / tests / ui / suggestions / object-unsafe-trait-should-use-where-sized.fixed
1 // run-rustfix
2 #![allow(unused_variables, dead_code)]
3
4 trait Trait {
5     fn foo(&self) where Self: Other, Self: Sized { }
6     fn bar(self: &Self) {} //~ ERROR invalid `self` parameter type
7 }
8
9 fn bar(x: &dyn Trait) {} //~ ERROR the trait `Trait` cannot be made into an object
10
11 trait Other {}
12
13 fn main() {}