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