mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-10 07:04:18 +00:00
76 lines
2.4 KiB
Text
76 lines
2.4 KiB
Text
error: you seem to be using a `LinkedList`! Perhaps you meant some other data structure?
|
|
--> tests/ui/linkedlist.rs:8:10
|
|
|
|
|
LL | const C: LinkedList<i32> = LinkedList::new();
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
= help: a `VecDeque` might work
|
|
= note: `-D clippy::linkedlist` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::linkedlist)]`
|
|
|
|
error: you seem to be using a `LinkedList`! Perhaps you meant some other data structure?
|
|
--> tests/ui/linkedlist.rs:10:11
|
|
|
|
|
LL | static S: LinkedList<i32> = LinkedList::new();
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
= help: a `VecDeque` might work
|
|
|
|
error: you seem to be using a `LinkedList`! Perhaps you meant some other data structure?
|
|
--> tests/ui/linkedlist.rs:14:16
|
|
|
|
|
LL | type Baz = LinkedList<u8>;
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
= help: a `VecDeque` might work
|
|
|
|
error: you seem to be using a `LinkedList`! Perhaps you meant some other data structure?
|
|
--> tests/ui/linkedlist.rs:16:15
|
|
|
|
|
LL | fn foo(_: LinkedList<u8>);
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
= help: a `VecDeque` might work
|
|
|
|
error: you seem to be using a `LinkedList`! Perhaps you meant some other data structure?
|
|
--> tests/ui/linkedlist.rs:18:23
|
|
|
|
|
LL | const BAR: Option<LinkedList<u8>>;
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
= help: a `VecDeque` might work
|
|
|
|
error: you seem to be using a `LinkedList`! Perhaps you meant some other data structure?
|
|
--> tests/ui/linkedlist.rs:29:29
|
|
|
|
|
LL | priv_linked_list_field: LinkedList<u8>,
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
= help: a `VecDeque` might work
|
|
|
|
error: you seem to be using a `LinkedList`! Perhaps you meant some other data structure?
|
|
--> tests/ui/linkedlist.rs:34:15
|
|
|
|
|
LL | fn foo(_: LinkedList<u8>) {}
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
= help: a `VecDeque` might work
|
|
|
|
error: you seem to be using a `LinkedList`! Perhaps you meant some other data structure?
|
|
--> tests/ui/linkedlist.rs:40:34
|
|
|
|
|
LL | fn test(my_favorite_linked_list: LinkedList<u8>) {}
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
= help: a `VecDeque` might work
|
|
|
|
error: you seem to be using a `LinkedList`! Perhaps you meant some other data structure?
|
|
--> tests/ui/linkedlist.rs:42:25
|
|
|
|
|
LL | fn test_ret() -> Option<LinkedList<u8>> {
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
= help: a `VecDeque` might work
|
|
|
|
error: aborting due to 9 previous errors
|
|
|