fork/rust

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

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

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