LL | fn foo(x: &Foo) {}
| ^^^- help: indicate the anonymous lifetime: `<'_>`
|
- = note: Warning forced by `force-warns` commandline option
+ = note: warning forced by `force-warns` commandline option
warning: 1 warning emitted
| |
| attempt to divide `1_i32` by zero
|
- = note: Warning forced by `force-warns` commandline option
+ = note: warning forced by `force-warns` commandline option
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
LL | fn dead_function() {}
| ^^^^^^^^^^^^^
|
- = note: Warning forced by `force-warns` commandline option
+ = note: warning forced by `force-warns` commandline option
warning: 1 warning emitted
| |
| attempt to divide `1_i32` by zero
|
- = note: Warning forced by `force-warns` commandline option
+ = note: warning forced by `force-warns` commandline option
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
LL | fn dead_function() {}
| ^^^^^^^^^^^^^
|
- = note: Warning forced by `force-warns` commandline option
+ = note: warning forced by `force-warns` commandline option
warning: 1 warning emitted
LL | pub fn FUNCTION() {}
| ^^^^^^^^ help: convert the identifier to snake case: `function`
|
- = note: Warning forced by `force-warns` commandline option
+ = note: warning forced by `force-warns` commandline option
warning: 1 warning emitted
LL | pub fn function(_x: Box<SomeTrait>) {}
| ^^^^^^^^^ help: use `dyn`: `dyn SomeTrait`
|
- = note: Warning forced by `force-warns` commandline option
+ = note: warning forced by `force-warns` commandline option
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2021 edition!
= note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165>
LL | pub fn function(_x: Box<SomeTrait>) {}
| ^^^^^^^^^ help: use `dyn`: `dyn SomeTrait`
|
- = note: Warning forced by `force-warns` commandline option
+ = note: warning forced by `force-warns` commandline option
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2021 edition!
= note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165>
LL | pub fn function(_x: Box<SomeTrait>) {}
| ^^^^^^^^^ help: use `dyn`: `dyn SomeTrait`
|
- = note: Warning forced by `force-warns` commandline option
+ = note: warning forced by `force-warns` commandline option
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2021 edition!
= note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165>