about summary refs log tree commit diff
path: root/tests/ui/issues/issue-28344.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/issues/issue-28344.rs')
-rw-r--r--tests/ui/issues/issue-28344.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/ui/issues/issue-28344.rs b/tests/ui/issues/issue-28344.rs
new file mode 100644
index 00000000000..1a6a7f46b27
--- /dev/null
+++ b/tests/ui/issues/issue-28344.rs
@@ -0,0 +1,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
+}