2018-05-30 09:06:08 -03:00
|
|
|
error: the trait `X` cannot be made into an object
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/issue-50781.rs:6:5
|
2018-05-22 12:09:35 -03:00
|
|
|
|
|
2018-05-30 09:06:08 -03:00
|
|
|
LL | fn foo(&self) where Self: Trait; //~ ERROR the trait `X` cannot be made into an object
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2018-05-22 12:09:35 -03:00
|
|
|
|
|
2018-05-30 09:06:08 -03:00
|
|
|
note: lint level defined here
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/issue-50781.rs:1:9
|
2018-05-30 09:06:08 -03:00
|
|
|
|
|
|
|
|
LL | #![deny(where_clauses_object_safety)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
2018-06-08 18:26:37 -03:00
|
|
|
= note: for more information, see issue #51443 <https://github.com/rust-lang/rust/issues/51443>
|
2018-05-30 09:06:08 -03:00
|
|
|
= note: method `foo` references the `Self` type in where clauses
|
2018-05-22 12:09:35 -03:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|