fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1warning: trait objects without an explicit `dyn` are deprecated 2 --> $DIR/allowed-group-warn-by-default-lint.rs:10:25 3 | 4LL | pub fn function(_x: Box<SomeTrait>) {} 5 | ^^^^^^^^^ 6 | 7 = warning: this is accepted in the current edition (Rust 2015) 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: requested on the command line with `--force-warn bare-trait-objects` 10help: use `dyn` 11 | 12LL | pub fn function(_x: Box<dyn SomeTrait>) {} 13 | +++ 14 15warning: trait objects without an explicit `dyn` are deprecated 16 --> $DIR/allowed-group-warn-by-default-lint.rs:10:25 17 | 18LL | pub fn function(_x: Box<SomeTrait>) {} 19 | ^^^^^^^^^ 20 | 21 = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! 22 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html> 23help: use `dyn` 24 | 25LL | pub fn function(_x: Box<dyn SomeTrait>) {} 26 | +++ 27 28warning: trait objects without an explicit `dyn` are deprecated 29 --> $DIR/allowed-group-warn-by-default-lint.rs:10:25 30 | 31LL | pub fn function(_x: Box<SomeTrait>) {} 32 | ^^^^^^^^^ 33 | 34 = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! 35 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html> 36help: use `dyn` 37 | 38LL | pub fn function(_x: Box<dyn SomeTrait>) {} 39 | +++ 40 41warning: 3 warnings emitted 42