2015-09-13 20:14:04 +00:00
|
|
|
use std::ops::BitXor;
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let x: u8 = BitXor::bitor(0 as u8, 0 as u8);
|
|
|
|
//~^ ERROR must be specified
|
2017-06-02 20:20:36 +00:00
|
|
|
//~| no function or associated item named
|
2021-07-10 08:00:54 +00:00
|
|
|
//~| WARN trait objects without an explicit `dyn` are deprecated
|
|
|
|
//~| WARN this is accepted in the current edition
|
2015-09-13 20:14:04 +00:00
|
|
|
|
|
|
|
let g = BitXor::bitor;
|
|
|
|
//~^ ERROR must be specified
|
2017-06-02 20:20:36 +00:00
|
|
|
//~| no function or associated item named
|
2021-07-10 08:00:54 +00:00
|
|
|
//~| WARN trait objects without an explicit `dyn` are deprecated
|
|
|
|
//~| WARN this is accepted in the current edition
|
2017-06-02 20:20:36 +00:00
|
|
|
}
|