summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/missing-trait-item.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/suggestions/missing-trait-item.rs')
-rw-r--r--tests/ui/suggestions/missing-trait-item.rs16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/ui/suggestions/missing-trait-item.rs b/tests/ui/suggestions/missing-trait-item.rs
new file mode 100644
index 000000000..b4fca25ba
--- /dev/null
+++ b/tests/ui/suggestions/missing-trait-item.rs
@@ -0,0 +1,16 @@
+// run-rustfix
+
+trait T {
+ unsafe fn foo(a: &usize, b: &usize) -> usize;
+ fn bar(&self, a: &usize, b: &usize) -> usize;
+}
+
+mod foo {
+ use super::T;
+ impl T for () {} //~ ERROR not all trait items
+
+ impl T for usize { //~ ERROR not all trait items
+ }
+}
+
+fn main() {}