fork/rust

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

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

master
5.6 KiB142 linesraw
1error: expected one of `:`, `@`, or `|`, found `)`
2  --> $DIR/anon-params-denied-2018.rs:6:15
3   |
4LL |     fn foo(i32);
5   |               ^ expected one of `:`, `@`, or `|`
6   |
7   = note: anonymous parameters are removed in the 2018 edition (see RFC 1685)
8help: if this is a `self` type, give it a parameter name
9   |
10LL |     fn foo(self: i32);
11   |            +++++
12help: if this is a parameter name, give it a type
13   |
14LL |     fn foo(i32: TypeName);
15   |               ++++++++++
16help: if this is a type, explicitly ignore the parameter name
17   |
18LL |     fn foo(_: i32);
19   |            ++
20
21error: expected one of `:`, `@`, or `|`, found `)`
22  --> $DIR/anon-params-denied-2018.rs:9:29
23   |
24LL |     fn foo_with_ref(&mut i32);
25   |                             ^ expected one of `:`, `@`, or `|`
26   |
27   = note: anonymous parameters are removed in the 2018 edition (see RFC 1685)
28help: if this is a `self` type, give it a parameter name
29   |
30LL |     fn foo_with_ref(self: &mut i32);
31   |                     +++++
32help: if this is a parameter name, give it a type
33   |
34LL |     fn foo_with_ref(i32: &mut TypeName);
35   |                     ~~~~~~~~~~~~~~~~~~
36help: if this is a type, explicitly ignore the parameter name
37   |
38LL |     fn foo_with_ref(_: &mut i32);
39   |                     ++
40
41error: expected one of `(`, `...`, `..=`, `..`, `::`, `:`, `{`, or `|`, found `)`
42  --> $DIR/anon-params-denied-2018.rs:12:47
43   |
44LL |     fn foo_with_qualified_path(<Bar as T>::Baz);
45   |                                               ^ expected one of 8 possible tokens
46   |
47   = note: anonymous parameters are removed in the 2018 edition (see RFC 1685)
48help: explicitly ignore the parameter name
49   |
50LL |     fn foo_with_qualified_path(_: <Bar as T>::Baz);
51   |                                ~~~~~~~~~~~~~~~~~~
52
53error: expected one of `(`, `...`, `..=`, `..`, `::`, `:`, `{`, or `|`, found `)`
54  --> $DIR/anon-params-denied-2018.rs:15:56
55   |
56LL |     fn foo_with_qualified_path_and_ref(&<Bar as T>::Baz);
57   |                                                        ^ expected one of 8 possible tokens
58   |
59   = note: anonymous parameters are removed in the 2018 edition (see RFC 1685)
60help: explicitly ignore the parameter name
61   |
62LL |     fn foo_with_qualified_path_and_ref(_: &<Bar as T>::Baz);
63   |                                        ~~~~~~~~~~~~~~~~~~~
64
65error: expected one of `(`, `...`, `..=`, `..`, `::`, `:`, `{`, or `|`, found `,`
66  --> $DIR/anon-params-denied-2018.rs:18:57
67   |
68LL |     fn foo_with_multiple_qualified_paths(<Bar as T>::Baz, <Bar as T>::Baz);
69   |                                                         ^ expected one of 8 possible tokens
70   |
71   = note: anonymous parameters are removed in the 2018 edition (see RFC 1685)
72help: explicitly ignore the parameter name
73   |
74LL |     fn foo_with_multiple_qualified_paths(_: <Bar as T>::Baz, <Bar as T>::Baz);
75   |                                          ~~~~~~~~~~~~~~~~~~
76
77error: expected one of `(`, `...`, `..=`, `..`, `::`, `:`, `{`, or `|`, found `)`
78  --> $DIR/anon-params-denied-2018.rs:18:74
79   |
80LL |     fn foo_with_multiple_qualified_paths(<Bar as T>::Baz, <Bar as T>::Baz);
81   |                                                                          ^ expected one of 8 possible tokens
82   |
83   = note: anonymous parameters are removed in the 2018 edition (see RFC 1685)
84help: explicitly ignore the parameter name
85   |
86LL |     fn foo_with_multiple_qualified_paths(<Bar as T>::Baz, _: <Bar as T>::Baz);
87   |                                                           ~~~~~~~~~~~~~~~~~~
88
89error: expected one of `:`, `@`, or `|`, found `,`
90  --> $DIR/anon-params-denied-2018.rs:22:36
91   |
92LL |     fn bar_with_default_impl(String, String) {}
93   |                                    ^ expected one of `:`, `@`, or `|`
94   |
95   = note: anonymous parameters are removed in the 2018 edition (see RFC 1685)
96help: if this is a `self` type, give it a parameter name
97   |
98LL |     fn bar_with_default_impl(self: String, String) {}
99   |                              +++++
100help: if this is a parameter name, give it a type
101   |
102LL |     fn bar_with_default_impl(String: TypeName, String) {}
103   |                                    ++++++++++
104help: if this is a type, explicitly ignore the parameter name
105   |
106LL |     fn bar_with_default_impl(_: String, String) {}
107   |                              ++
108
109error: expected one of `:`, `@`, or `|`, found `)`
110  --> $DIR/anon-params-denied-2018.rs:22:44
111   |
112LL |     fn bar_with_default_impl(String, String) {}
113   |                                            ^ expected one of `:`, `@`, or `|`
114   |
115   = note: anonymous parameters are removed in the 2018 edition (see RFC 1685)
116help: if this is a parameter name, give it a type
117   |
118LL |     fn bar_with_default_impl(String, String: TypeName) {}
119   |                                            ++++++++++
120help: if this is a type, explicitly ignore the parameter name
121   |
122LL |     fn bar_with_default_impl(String, _: String) {}
123   |                                      ++
124
125error: expected one of `:`, `@`, or `|`, found `,`
126  --> $DIR/anon-params-denied-2018.rs:27:22
127   |
128LL |     fn baz(a:usize, b, c: usize) -> usize {
129   |                      ^ expected one of `:`, `@`, or `|`
130   |
131   = note: anonymous parameters are removed in the 2018 edition (see RFC 1685)
132help: if this is a parameter name, give it a type
133   |
134LL |     fn baz(a:usize, b: TypeName, c: usize) -> usize {
135   |                      ++++++++++
136help: if this is a type, explicitly ignore the parameter name
137   |
138LL |     fn baz(a:usize, _: b, c: usize) -> usize {
139   |                     ++
140
141error: aborting due to 9 previous errors
142