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