1 warning: trait objects without an explicit `dyn` are deprecated
2 --> $DIR/issue-28344.rs:4:17
4 LL | let x: u8 = BitXor::bitor(0 as u8, 0 as u8);
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>
12 LL | let x: u8 = <dyn BitXor>::bitor(0 as u8, 0 as u8);
15 error[E0191]: the value of the associated type `Output` (from trait `BitXor`) must be specified
16 --> $DIR/issue-28344.rs:4:17
18 LL | let x: u8 = BitXor::bitor(0 as u8, 0 as u8);
19 | ^^^^^^ help: specify the associated type: `BitXor<Output = Type>`
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
24 LL | let x: u8 = BitXor::bitor(0 as u8, 0 as u8);
27 | function or associated item not found in `dyn BitXor<_>`
28 | help: there is an associated function with a similar name: `bitxor`
30 warning: trait objects without an explicit `dyn` are deprecated
31 --> $DIR/issue-28344.rs:10:13
33 LL | let g = BitXor::bitor;
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>
40 LL | let g = <dyn BitXor>::bitor;
43 error[E0191]: the value of the associated type `Output` (from trait `BitXor`) must be specified
44 --> $DIR/issue-28344.rs:10:13
46 LL | let g = BitXor::bitor;
47 | ^^^^^^ help: specify the associated type: `BitXor<Output = Type>`
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
52 LL | let g = BitXor::bitor;
55 | function or associated item not found in `dyn BitXor<_>`
56 | help: there is an associated function with a similar name: `bitxor`
58 error: aborting due to 4 previous errors; 2 warnings emitted
60 Some errors have detailed explanations: E0191, E0599.
61 For more information about an error, try `rustc --explain E0191`.