]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-28344.stderr
Rollup merge of #92942 - Xaeroxe:raw_arg, r=dtolnay
[rust.git] / src / test / ui / issues / issue-28344.stderr
1 warning: trait objects without an explicit `dyn` are deprecated
2   --> $DIR/issue-28344.rs:4:17
3    |
4 LL |     let x: u8 = BitXor::bitor(0 as u8, 0 as u8);
5    |                 ^^^^^^
6    |
7    = note: `#[warn(bare_trait_objects)]` on by default
8    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
9    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
10 help: use `dyn`
11    |
12 LL |     let x: u8 = <dyn BitXor>::bitor(0 as u8, 0 as u8);
13    |                 ++++       +
14
15 error[E0191]: the value of the associated type `Output` (from trait `BitXor`) must be specified
16   --> $DIR/issue-28344.rs:4:17
17    |
18 LL |     let x: u8 = BitXor::bitor(0 as u8, 0 as u8);
19    |                 ^^^^^^ help: specify the associated type: `BitXor<Output = Type>`
20
21 error[E0599]: no function or associated item named `bitor` found for trait object `dyn BitXor<_>` in the current scope
22   --> $DIR/issue-28344.rs:4:25
23    |
24 LL |     let x: u8 = BitXor::bitor(0 as u8, 0 as u8);
25    |                         ^^^^^
26    |                         |
27    |                         function or associated item not found in `dyn BitXor<_>`
28    |                         help: there is an associated function with a similar name: `bitxor`
29
30 warning: trait objects without an explicit `dyn` are deprecated
31   --> $DIR/issue-28344.rs:10:13
32    |
33 LL |     let g = BitXor::bitor;
34    |             ^^^^^^
35    |
36    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
37    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
38 help: use `dyn`
39    |
40 LL |     let g = <dyn BitXor>::bitor;
41    |             ++++       +
42
43 error[E0191]: the value of the associated type `Output` (from trait `BitXor`) must be specified
44   --> $DIR/issue-28344.rs:10:13
45    |
46 LL |     let g = BitXor::bitor;
47    |             ^^^^^^ help: specify the associated type: `BitXor<Output = Type>`
48
49 error[E0599]: no function or associated item named `bitor` found for trait object `dyn BitXor<_>` in the current scope
50   --> $DIR/issue-28344.rs:10:21
51    |
52 LL |     let g = BitXor::bitor;
53    |                     ^^^^^
54    |                     |
55    |                     function or associated item not found in `dyn BitXor<_>`
56    |                     help: there is an associated function with a similar name: `bitxor`
57
58 error: aborting due to 4 previous errors; 2 warnings emitted
59
60 Some errors have detailed explanations: E0191, E0599.
61 For more information about an error, try `rustc --explain E0191`.