fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

1.41.1
638 B17 linesraw
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