summary refs log tree commit diff
path: root/src/test/ui/lint/force-warn/force-warn-cap-lints-allow.stderr
blob: a89970587751d3ed94d8c82f8d80911942ec7839 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
warning: trait objects without an explicit `dyn` are deprecated
  --> $DIR/force-warn-cap-lints-allow.rs:6:25
   |
LL | pub fn function(_x: Box<SomeTrait>) {}
   |                         ^^^^^^^^^ help: use `dyn`: `dyn SomeTrait`
   |
   = note: requested on the command line with `--force-warn bare-trait-objects`
   = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
   = note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165>

warning: 1 warning emitted