fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
2.4 KiB76 linesraw
1error: you seem to be using a `LinkedList`! Perhaps you meant some other data structure?
2  --> $DIR/linkedlist.rs:8:10
3   |
4LL | const C: LinkedList<i32> = LinkedList::new();
5   |          ^^^^^^^^^^^^^^^
6   |
7   = help: a `VecDeque` might work
8   = note: `-D clippy::linkedlist` implied by `-D warnings`
9   = help: to override `-D warnings` add `#[allow(clippy::linkedlist)]`
10
11error: you seem to be using a `LinkedList`! Perhaps you meant some other data structure?
12  --> $DIR/linkedlist.rs:10:11
13   |
14LL | static S: LinkedList<i32> = LinkedList::new();
15   |           ^^^^^^^^^^^^^^^
16   |
17   = help: a `VecDeque` might work
18
19error: you seem to be using a `LinkedList`! Perhaps you meant some other data structure?
20  --> $DIR/linkedlist.rs:14:16
21   |
22LL |     type Baz = LinkedList<u8>;
23   |                ^^^^^^^^^^^^^^
24   |
25   = help: a `VecDeque` might work
26
27error: you seem to be using a `LinkedList`! Perhaps you meant some other data structure?
28  --> $DIR/linkedlist.rs:16:15
29   |
30LL |     fn foo(_: LinkedList<u8>);
31   |               ^^^^^^^^^^^^^^
32   |
33   = help: a `VecDeque` might work
34
35error: you seem to be using a `LinkedList`! Perhaps you meant some other data structure?
36  --> $DIR/linkedlist.rs:18:23
37   |
38LL |     const BAR: Option<LinkedList<u8>>;
39   |                       ^^^^^^^^^^^^^^
40   |
41   = help: a `VecDeque` might work
42
43error: you seem to be using a `LinkedList`! Perhaps you meant some other data structure?
44  --> $DIR/linkedlist.rs:29:29
45   |
46LL |     priv_linked_list_field: LinkedList<u8>,
47   |                             ^^^^^^^^^^^^^^
48   |
49   = help: a `VecDeque` might work
50
51error: you seem to be using a `LinkedList`! Perhaps you meant some other data structure?
52  --> $DIR/linkedlist.rs:34:15
53   |
54LL |     fn foo(_: LinkedList<u8>) {}
55   |               ^^^^^^^^^^^^^^
56   |
57   = help: a `VecDeque` might work
58
59error: you seem to be using a `LinkedList`! Perhaps you meant some other data structure?
60  --> $DIR/linkedlist.rs:40:34
61   |
62LL | fn test(my_favorite_linked_list: LinkedList<u8>) {}
63   |                                  ^^^^^^^^^^^^^^
64   |
65   = help: a `VecDeque` might work
66
67error: you seem to be using a `LinkedList`! Perhaps you meant some other data structure?
68  --> $DIR/linkedlist.rs:42:25
69   |
70LL | fn test_ret() -> Option<LinkedList<u8>> {
71   |                         ^^^^^^^^^^^^^^
72   |
73   = help: a `VecDeque` might work
74
75error: aborting due to 9 previous errors
76