]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/missing-trait-item.rs
Auto merge of #106977 - michaelwoerister:unord_id_collections, r=oli-obk
[rust.git] / tests / ui / suggestions / missing-trait-item.rs
1 // run-rustfix
2
3 trait T {
4     unsafe fn foo(a: &usize, b: &usize) -> usize;
5     fn bar(&self, a: &usize, b: &usize) -> usize;
6 }
7
8 mod foo {
9     use super::T;
10     impl T for () {} //~ ERROR not all trait items
11
12     impl T for usize { //~ ERROR not all trait items
13     }
14 }
15
16 fn main() {}