blob: 68eda14f81db457b3310f6467d7b37e8223f2ef9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
error: parenthesized parameters may only be used with a trait
--> $DIR/issue-32995-2.rs:14:28
|
LL | { fn f<X: ::std::marker()::Send>() {} }
| ^^
|
= note: #[deny(parenthesized_params_in_types_and_modules)] on by default
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #42238 <https://github.com/rust-lang/rust/issues/42238>
error: parenthesized parameters may only be used with a trait
--> $DIR/issue-32995-2.rs:18:35
|
LL | { fn f() -> impl ::std::marker()::Send { } }
| ^^
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #42238 <https://github.com/rust-lang/rust/issues/42238>
error: parenthesized parameters may only be used with a trait
--> $DIR/issue-32995-2.rs:26:19
|
LL | impl ::std::marker()::Copy for X {}
| ^^
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #42238 <https://github.com/rust-lang/rust/issues/42238>
error: aborting due to 3 previous errors
|