rust/tests/ui/lint/bare-trait-objects-path.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

63 lines
2.3 KiB
Plaintext
Raw Normal View History

2021-07-10 03:00:54 -05:00
warning: trait objects without an explicit `dyn` are deprecated
--> $DIR/bare-trait-objects-path.rs:23:12
|
LL | let _: Dyn::Ty;
2021-11-01 04:01:42 -05:00
| ^^^
2021-07-10 03:00:54 -05:00
|
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
2022-09-18 10:55:36 -05:00
= note: `#[warn(bare_trait_objects)]` on by default
help: if this is an object-safe trait, use `dyn`
2021-11-01 04:01:42 -05:00
|
LL | let _: <dyn Dyn>::Ty;
| ++++ +
2021-07-10 03:00:54 -05:00
error[E0223]: ambiguous associated type
2021-04-16 04:06:51 -05:00
--> $DIR/bare-trait-objects-path.rs:23:12
|
LL | let _: Dyn::Ty;
2023-10-16 13:25:11 -05:00
| ^^^^^^^ help: use fully-qualified syntax: `<dyn Dyn as Assoc>::Ty`
warning: trait objects without an explicit `dyn` are deprecated
--> $DIR/bare-trait-objects-path.rs:14:5
|
LL | Dyn::func();
2021-11-01 04:01:42 -05:00
| ^^^
|
2021-06-16 07:27:44 -05:00
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
help: if this is an object-safe trait, use `dyn`
2021-11-01 04:01:42 -05:00
|
LL | <dyn Dyn>::func();
| ++++ +
warning: trait objects without an explicit `dyn` are deprecated
2021-04-16 04:06:51 -05:00
--> $DIR/bare-trait-objects-path.rs:17:5
|
LL | ::Dyn::func();
2021-11-01 04:01:42 -05:00
| ^^^^^
2021-04-16 04:06:51 -05:00
|
2021-06-16 07:27:44 -05:00
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
help: if this is an object-safe trait, use `dyn`
2021-11-01 04:01:42 -05:00
|
LL | <dyn (::Dyn)>::func();
| ++++++ ++
warning: trait objects without an explicit `dyn` are deprecated
2021-04-16 04:06:51 -05:00
--> $DIR/bare-trait-objects-path.rs:20:5
|
LL | Dyn::CONST;
2021-11-01 04:01:42 -05:00
| ^^^
2021-04-16 04:06:51 -05:00
|
2021-06-16 07:27:44 -05:00
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
help: if this is an object-safe trait, use `dyn`
2021-11-01 04:01:42 -05:00
|
LL | <dyn Dyn>::CONST;
| ++++ +
error: aborting due to 1 previous error; 4 warnings emitted
For more information about this error, try `rustc --explain E0223`.