blob: 28067e17414f8d1053bdb0094f972724856c963c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
error: unused import: `std::any::Any`
--> tests/ui/unused_trait_names.rs:254:9
|
LL | use std::any::Any;
| ^^^^^^^^^^^^^
|
= note: `-D unused-imports` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(unused_imports)]`
error: importing trait that is only used anonymously
--> tests/ui/unused_trait_names.rs:12:19
|
LL | use std::any::Any;
| ^^^ help: use: `Any as _`
|
= note: `-D clippy::unused-trait-names` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::unused_trait_names)]`
error: importing trait that is only used anonymously
--> tests/ui/unused_trait_names.rs:32:26
|
LL | use std::any::{self, Any, TypeId};
| ^^^ help: use: `Any as _`
error: importing trait that is only used anonymously
--> tests/ui/unused_trait_names.rs:45:19
|
LL | use std::any::Any as MyAny;
| ^^^^^^^^^^^^ help: use: `Any as _`
error: importing trait that is only used anonymously
--> tests/ui/unused_trait_names.rs:52:20
|
LL | use std::any::{Any as MyAny, TypeId as MyTypeId};
| ^^^^^^^^^^^^ help: use: `Any as _`
error: importing trait that is only used anonymously
--> tests/ui/unused_trait_names.rs:76:23
|
LL | use std::any::Any;
| ^^^ help: use: `Any as _`
error: importing trait that is only used anonymously
--> tests/ui/unused_trait_names.rs:118:19
|
LL | use std::any::Any;
| ^^^ help: use: `Any as _`
error: importing trait that is only used anonymously
--> tests/ui/unused_trait_names.rs:138:19
|
LL | use std::any::Any;
| ^^^ help: use: `Any as _`
error: importing trait that is only used anonymously
--> tests/ui/unused_trait_names.rs:198:34
|
LL | use simple_trait::{MyStruct, MyTrait};
| ^^^^^^^ help: use: `MyTrait as _`
error: aborting due to 9 previous errors
|