]> git.lizzy.rs Git - rust.git/blob - tests/ui/impl.rs
Adapt the *.stderr files of the ui-tests to the tool_lints
[rust.git] / tests / ui / impl.rs
1 #![feature(tool_lints)]
2
3 #![allow(dead_code)]
4 #![warn(clippy::multiple_inherent_impl)]
5
6 struct MyStruct;
7
8 impl MyStruct {
9     fn first() {}
10 }
11
12 impl MyStruct {
13     fn second() {}
14 }
15
16 impl<'a> MyStruct {
17     fn lifetimed() {}
18 }
19
20 mod submod {
21     struct MyStruct;
22     impl MyStruct {
23         fn other() {}
24     }
25
26     impl super::MyStruct {
27         fn third() {}
28     }
29 }
30
31 use std::fmt;
32 impl fmt::Debug for MyStruct {
33     fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
34         write!(f, "MyStruct {{ }}")
35     }
36 }
37
38 fn main() {}