]> git.lizzy.rs Git - rust.git/blob - tests/ui/dyn-keyword/dyn-angle-brackets.stderr
Rollup merge of #106648 - Nilstrieb:poly-cleanup, r=compiler-errors
[rust.git] / tests / ui / dyn-keyword / dyn-angle-brackets.stderr
1 error: trait objects without an explicit `dyn` are deprecated
2   --> $DIR/dyn-angle-brackets.rs:15:10
3    |
4 LL |         <fmt::Debug>::fmt(self, f)
5    |          ^^^^^^^^^^
6    |
7    = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
8    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
9 note: the lint level is defined here
10   --> $DIR/dyn-angle-brackets.rs:4:9
11    |
12 LL | #![deny(bare_trait_objects)]
13    |         ^^^^^^^^^^^^^^^^^^
14 help: use `dyn`
15    |
16 LL |         <dyn fmt::Debug>::fmt(self, f)
17    |          +++
18
19 error: aborting due to previous error
20