]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/missing-trait-item.rs
Rollup merge of #90420 - GuillaumeGomez:rustdoc-internals-feature, r=camelid
[rust.git] / src / test / 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() {}