2021-06-21 15:55:07 +00:00
|
|
|
warning: trait method `try_into` will become ambiguous in Rust 2021
|
2024-05-23 01:06:43 +00:00
|
|
|
--> $DIR/inherent-dyn-collision.rs:42:9
|
2021-06-21 15:55:07 +00:00
|
|
|
|
|
|
|
|
LL | get_dyn_trait().try_into().unwrap()
|
|
|
|
| ^^^^^^^^^^^^^^^ help: disambiguate the method call: `(&*get_dyn_trait())`
|
|
|
|
|
|
2022-09-18 15:55:36 +00:00
|
|
|
= warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
|
|
|
|
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/prelude.html>
|
2021-06-21 15:55:07 +00:00
|
|
|
note: the lint level is defined here
|
|
|
|
--> $DIR/inherent-dyn-collision.rs:8:9
|
|
|
|
|
|
2021-07-01 11:35:33 +00:00
|
|
|
LL | #![warn(rust_2021_prelude_collisions)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2021-06-21 15:55:07 +00:00
|
|
|
|
|
|
|
warning: 1 warning emitted
|
|
|
|
|