fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1warning: trait objects without an explicit `dyn` are deprecated 2 --> $DIR/fresh-lifetime-from-bare-trait-obj-114664.rs:5:24 3 | 4LL | fn ice() -> impl AsRef<Fn(&())> { 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: `#[warn(bare_trait_objects)]` on by default 10help: use `dyn` 11 | 12LL | fn ice() -> impl AsRef<dyn Fn(&())> { 13 | +++ 14 15warning: trait objects without an explicit `dyn` are deprecated 16 --> $DIR/fresh-lifetime-from-bare-trait-obj-114664.rs:5:24 17 | 18LL | fn ice() -> impl AsRef<Fn(&())> { 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 | fn ice() -> impl AsRef<dyn Fn(&())> { 26 | +++ 27 28warning: trait objects without an explicit `dyn` are deprecated 29 --> $DIR/fresh-lifetime-from-bare-trait-obj-114664.rs:5:24 30 | 31LL | fn ice() -> impl AsRef<Fn(&())> { 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 | fn ice() -> impl AsRef<dyn Fn(&())> { 39 | +++ 40 41warning: 3 warnings emitted 42