fork/rust
git clone https://git.julia.blue/fork/rust
73528e339aa
1.40.0
1error: the trait `X` cannot be made into an object 2 --> $DIR/issue-50781.rs:6:8 3 | 4LL | fn foo(&self) where Self: Trait; 5 | ^^^ 6 | 7note: lint level defined here 8 --> $DIR/issue-50781.rs:1:9 9 | 10LL | #![deny(where_clauses_object_safety)] 11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! 13 = note: for more information, see issue #51443 <https://github.com/rust-lang/rust/issues/51443> 14 = note: method `foo` references the `Self` type in where clauses 15 16error: aborting due to previous error 17