]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/missing-trait-item.fixed
Rollup merge of #103236 - tspiteri:redoc-int-adc-sbb, r=m-ou-se
[rust.git] / tests / ui / suggestions / missing-trait-item.fixed
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 () {    fn bar(&self, _: &usize, _: &usize) -> usize { todo!() }
11         unsafe fn foo(_: &usize, _: &usize) -> usize { todo!() }
12     } //~ ERROR not all trait items
13
14     impl T for usize { //~ ERROR not all trait items
15         fn bar(&self, _: &usize, _: &usize) -> usize { todo!() }
16         unsafe fn foo(_: &usize, _: &usize) -> usize { todo!() }
17     }
18 }
19
20 fn main() {}