summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-28344.rs
blob: 1a6a7f46b2742da92b949c6d22b7782f0faadd6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::ops::BitXor;

fn main() {
    let x: u8 = BitXor::bitor(0 as u8, 0 as u8);
    //~^ ERROR must be specified
    //~| no function or associated item named
    //~| WARN trait objects without an explicit `dyn` are deprecated
    //~| WARN this is accepted in the current edition

    let g = BitXor::bitor;
    //~^ ERROR must be specified
    //~| no function or associated item named
    //~| WARN trait objects without an explicit `dyn` are deprecated
    //~| WARN this is accepted in the current edition
}