]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-28344.rs
Merge commit 'd3a2366ee877075c59b38bd8ced55f224fc7ef51' into sync_cg_clif-2022-07-26
[rust.git] / src / test / ui / issues / issue-28344.rs
1 use std::ops::BitXor;
2
3 fn main() {
4     let x: u8 = BitXor::bitor(0 as u8, 0 as u8);
5     //~^ ERROR must be specified
6     //~| no function or associated item named
7     //~| WARN trait objects without an explicit `dyn` are deprecated
8     //~| WARN this is accepted in the current edition
9
10     let g = BitXor::bitor;
11     //~^ ERROR must be specified
12     //~| no function or associated item named
13     //~| WARN trait objects without an explicit `dyn` are deprecated
14     //~| WARN this is accepted in the current edition
15 }