2019-08-25 02:39:28 +00:00
|
|
|
error: expected one of `:`, `@`, or `|`, found `)`
|
2018-08-24 20:47:25 +00:00
|
|
|
--> $DIR/anon-params-denied-2018.rs:6:15
|
2018-08-22 20:07:27 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | fn foo(i32);
|
2019-10-28 18:08:53 +00:00
|
|
|
| ^ expected one of `:`, `@`, or `|`
|
2018-12-07 09:54:14 +00:00
|
|
|
|
|
|
|
|
= note: anonymous parameters are removed in the 2018 edition (see RFC 1685)
|
2019-10-01 14:17:50 +00:00
|
|
|
help: if this is a `self` type, give it a parameter name
|
|
|
|
|
|
|
|
|
LL | fn foo(self: i32);
|
2021-08-10 10:53:43 +00:00
|
|
|
| +++++
|
2020-06-28 03:55:42 +00:00
|
|
|
help: if this is a parameter name, give it a type
|
2019-05-29 22:25:46 +00:00
|
|
|
|
|
|
|
|
LL | fn foo(i32: TypeName);
|
2021-08-10 10:53:43 +00:00
|
|
|
| ++++++++++
|
2019-05-29 22:25:46 +00:00
|
|
|
help: if this is a type, explicitly ignore the parameter name
|
|
|
|
|
|
|
|
|
LL | fn foo(_: i32);
|
2021-08-10 10:53:43 +00:00
|
|
|
| ++
|
2018-08-22 20:07:27 +00:00
|
|
|
|
2021-03-04 19:19:15 +00:00
|
|
|
error: expected one of `:`, `@`, or `|`, found `)`
|
|
|
|
--> $DIR/anon-params-denied-2018.rs:9:29
|
|
|
|
|
|
|
|
|
LL | fn foo_with_ref(&mut i32);
|
|
|
|
| ^ expected one of `:`, `@`, or `|`
|
|
|
|
|
|
|
|
|
= note: anonymous parameters are removed in the 2018 edition (see RFC 1685)
|
|
|
|
help: if this is a `self` type, give it a parameter name
|
|
|
|
|
|
|
|
|
LL | fn foo_with_ref(self: &mut i32);
|
2021-08-10 10:53:43 +00:00
|
|
|
| +++++
|
2021-03-04 19:19:15 +00:00
|
|
|
help: if this is a parameter name, give it a type
|
|
|
|
|
|
|
|
|
LL | fn foo_with_ref(i32: &mut TypeName);
|
2021-06-22 02:07:19 +00:00
|
|
|
| ~~~~~~~~~~~~~~~~~~
|
2021-03-04 19:19:15 +00:00
|
|
|
help: if this is a type, explicitly ignore the parameter name
|
|
|
|
|
|
|
|
|
LL | fn foo_with_ref(_: &mut i32);
|
2021-08-10 10:53:43 +00:00
|
|
|
| ++
|
2021-03-04 19:19:15 +00:00
|
|
|
|
2021-03-05 05:52:45 +00:00
|
|
|
error: expected one of `(`, `...`, `..=`, `..`, `::`, `:`, `{`, or `|`, found `)`
|
|
|
|
--> $DIR/anon-params-denied-2018.rs:12:47
|
|
|
|
|
|
|
|
|
LL | fn foo_with_qualified_path(<Bar as T>::Baz);
|
|
|
|
| ^ expected one of 8 possible tokens
|
|
|
|
|
|
|
|
|
= note: anonymous parameters are removed in the 2018 edition (see RFC 1685)
|
2021-03-17 00:49:46 +00:00
|
|
|
help: explicitly ignore the parameter name
|
|
|
|
|
|
|
|
|
LL | fn foo_with_qualified_path(_: <Bar as T>::Baz);
|
2021-06-22 02:07:19 +00:00
|
|
|
| ~~~~~~~~~~~~~~~~~~
|
2021-03-05 05:52:45 +00:00
|
|
|
|
|
|
|
error: expected one of `(`, `...`, `..=`, `..`, `::`, `:`, `{`, or `|`, found `)`
|
|
|
|
--> $DIR/anon-params-denied-2018.rs:15:56
|
|
|
|
|
|
|
|
|
LL | fn foo_with_qualified_path_and_ref(&<Bar as T>::Baz);
|
|
|
|
| ^ expected one of 8 possible tokens
|
|
|
|
|
|
|
|
|
= note: anonymous parameters are removed in the 2018 edition (see RFC 1685)
|
2021-03-17 00:49:46 +00:00
|
|
|
help: explicitly ignore the parameter name
|
|
|
|
|
|
|
|
|
LL | fn foo_with_qualified_path_and_ref(_: &<Bar as T>::Baz);
|
2021-06-22 02:07:19 +00:00
|
|
|
| ~~~~~~~~~~~~~~~~~~~
|
2021-03-05 05:52:45 +00:00
|
|
|
|
2021-03-17 02:41:05 +00:00
|
|
|
error: expected one of `(`, `...`, `..=`, `..`, `::`, `:`, `{`, or `|`, found `,`
|
|
|
|
--> $DIR/anon-params-denied-2018.rs:18:57
|
|
|
|
|
|
|
|
|
LL | fn foo_with_multiple_qualified_paths(<Bar as T>::Baz, <Bar as T>::Baz);
|
|
|
|
| ^ expected one of 8 possible tokens
|
|
|
|
|
|
|
|
|
= note: anonymous parameters are removed in the 2018 edition (see RFC 1685)
|
|
|
|
help: explicitly ignore the parameter name
|
|
|
|
|
|
|
|
|
LL | fn foo_with_multiple_qualified_paths(_: <Bar as T>::Baz, <Bar as T>::Baz);
|
2021-06-22 02:07:19 +00:00
|
|
|
| ~~~~~~~~~~~~~~~~~~
|
2021-03-17 02:41:05 +00:00
|
|
|
|
|
|
|
error: expected one of `(`, `...`, `..=`, `..`, `::`, `:`, `{`, or `|`, found `)`
|
|
|
|
--> $DIR/anon-params-denied-2018.rs:18:74
|
|
|
|
|
|
|
|
|
LL | fn foo_with_multiple_qualified_paths(<Bar as T>::Baz, <Bar as T>::Baz);
|
|
|
|
| ^ expected one of 8 possible tokens
|
|
|
|
|
|
|
|
|
= note: anonymous parameters are removed in the 2018 edition (see RFC 1685)
|
|
|
|
help: explicitly ignore the parameter name
|
|
|
|
|
|
|
|
|
LL | fn foo_with_multiple_qualified_paths(<Bar as T>::Baz, _: <Bar as T>::Baz);
|
2021-06-22 02:07:19 +00:00
|
|
|
| ~~~~~~~~~~~~~~~~~~
|
2021-03-17 02:41:05 +00:00
|
|
|
|
2019-08-25 02:39:28 +00:00
|
|
|
error: expected one of `:`, `@`, or `|`, found `,`
|
2021-03-17 02:41:05 +00:00
|
|
|
--> $DIR/anon-params-denied-2018.rs:22:36
|
2018-08-22 20:07:27 +00:00
|
|
|
|
|
|
|
|
LL | fn bar_with_default_impl(String, String) {}
|
2019-10-28 18:08:53 +00:00
|
|
|
| ^ expected one of `:`, `@`, or `|`
|
2019-05-29 22:25:46 +00:00
|
|
|
|
|
|
|
|
= note: anonymous parameters are removed in the 2018 edition (see RFC 1685)
|
2019-10-01 14:17:50 +00:00
|
|
|
help: if this is a `self` type, give it a parameter name
|
|
|
|
|
|
|
|
|
LL | fn bar_with_default_impl(self: String, String) {}
|
2021-08-10 10:53:43 +00:00
|
|
|
| +++++
|
2020-06-28 03:55:42 +00:00
|
|
|
help: if this is a parameter name, give it a type
|
2019-05-29 22:25:46 +00:00
|
|
|
|
|
|
|
|
LL | fn bar_with_default_impl(String: TypeName, String) {}
|
2021-08-10 10:53:43 +00:00
|
|
|
| ++++++++++
|
2019-05-29 22:25:46 +00:00
|
|
|
help: if this is a type, explicitly ignore the parameter name
|
|
|
|
|
|
|
|
|
LL | fn bar_with_default_impl(_: String, String) {}
|
2021-08-10 10:53:43 +00:00
|
|
|
| ++
|
2019-05-29 22:25:46 +00:00
|
|
|
|
2019-08-25 02:39:28 +00:00
|
|
|
error: expected one of `:`, `@`, or `|`, found `)`
|
2021-03-17 02:41:05 +00:00
|
|
|
--> $DIR/anon-params-denied-2018.rs:22:44
|
2019-05-29 22:25:46 +00:00
|
|
|
|
|
|
|
|
LL | fn bar_with_default_impl(String, String) {}
|
2019-10-28 18:08:53 +00:00
|
|
|
| ^ expected one of `:`, `@`, or `|`
|
2018-12-07 09:54:14 +00:00
|
|
|
|
|
|
|
|
= note: anonymous parameters are removed in the 2018 edition (see RFC 1685)
|
2020-06-28 03:55:42 +00:00
|
|
|
help: if this is a parameter name, give it a type
|
2019-05-29 22:25:46 +00:00
|
|
|
|
|
|
|
|
LL | fn bar_with_default_impl(String, String: TypeName) {}
|
2021-08-10 10:53:43 +00:00
|
|
|
| ++++++++++
|
2019-05-29 22:25:46 +00:00
|
|
|
help: if this is a type, explicitly ignore the parameter name
|
|
|
|
|
|
|
|
|
LL | fn bar_with_default_impl(String, _: String) {}
|
2021-08-10 10:53:43 +00:00
|
|
|
| ++
|
2019-05-29 22:25:46 +00:00
|
|
|
|
2019-08-25 02:39:28 +00:00
|
|
|
error: expected one of `:`, `@`, or `|`, found `,`
|
2021-03-17 02:41:05 +00:00
|
|
|
--> $DIR/anon-params-denied-2018.rs:27:22
|
2019-05-29 22:25:46 +00:00
|
|
|
|
|
|
|
|
LL | fn baz(a:usize, b, c: usize) -> usize {
|
2019-10-28 18:08:53 +00:00
|
|
|
| ^ expected one of `:`, `@`, or `|`
|
2019-05-29 22:25:46 +00:00
|
|
|
|
|
|
|
|
= note: anonymous parameters are removed in the 2018 edition (see RFC 1685)
|
2020-06-28 03:55:42 +00:00
|
|
|
help: if this is a parameter name, give it a type
|
2019-05-29 22:25:46 +00:00
|
|
|
|
|
|
|
|
LL | fn baz(a:usize, b: TypeName, c: usize) -> usize {
|
2021-08-10 10:53:43 +00:00
|
|
|
| ++++++++++
|
2019-05-29 22:25:46 +00:00
|
|
|
help: if this is a type, explicitly ignore the parameter name
|
|
|
|
|
|
|
|
|
LL | fn baz(a:usize, _: b, c: usize) -> usize {
|
2021-08-10 10:53:43 +00:00
|
|
|
| ++
|
2018-08-22 20:07:27 +00:00
|
|
|
|
2021-03-17 02:41:05 +00:00
|
|
|
error: aborting due to 9 previous errors
|
2018-08-22 20:07:27 +00:00
|
|
|
|