1- error: parenthesized parameters may only be used with a trait
1+ error: parenthesized type parameters may only be used with a `Fn` trait
22 --> $DIR/issue-32995.rs:4:17
33 |
44LL | let x: usize() = 1;
@@ -8,7 +8,7 @@ LL | let x: usize() = 1;
88 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
99 = note: for more information, see issue #42238 <https://github.com/rust-lang/rust/issues/42238>
1010
11- error: parenthesized parameters may only be used with a trait
11+ error: parenthesized type parameters may only be used with a `Fn` trait
1212 --> $DIR/issue-32995.rs:8:24
1313 |
1414LL | let b: ::std::boxed()::Box<_> = Box::new(1);
@@ -17,25 +17,25 @@ LL | let b: ::std::boxed()::Box<_> = Box::new(1);
1717 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
1818 = note: for more information, see issue #42238 <https://github.com/rust-lang/rust/issues/42238>
1919
20- error: parenthesized parameters may only be used with a trait
21- --> $DIR/issue-32995.rs:12:23
20+ error: parenthesized type parameters may only be used with a `Fn` trait
21+ --> $DIR/issue-32995.rs:12:25
2222 |
2323LL | let p = ::std::str::()::from_utf8(b"foo").unwrap();
24- | ^^ ^^
24+ | ^^
2525 |
2626 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
2727 = note: for more information, see issue #42238 <https://github.com/rust-lang/rust/issues/42238>
2828
29- error: parenthesized parameters may only be used with a trait
30- --> $DIR/issue-32995.rs:16:34
29+ error: parenthesized type parameters may only be used with a `Fn` trait
30+ --> $DIR/issue-32995.rs:16:36
3131 |
3232LL | let p = ::std::str::from_utf8::()(b"foo").unwrap();
33- | ^^ ^^
33+ | ^^
3434 |
3535 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
3636 = note: for more information, see issue #42238 <https://github.com/rust-lang/rust/issues/42238>
3737
38- error: parenthesized parameters may only be used with a trait
38+ error: parenthesized type parameters may only be used with a `Fn` trait
3939 --> $DIR/issue-32995.rs:20:30
4040 |
4141LL | let o : Box<::std::marker()::Send> = Box::new(1);
@@ -44,7 +44,7 @@ LL | let o : Box<::std::marker()::Send> = Box::new(1);
4444 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
4545 = note: for more information, see issue #42238 <https://github.com/rust-lang/rust/issues/42238>
4646
47- error: parenthesized parameters may only be used with a trait
47+ error: parenthesized type parameters may only be used with a `Fn` trait
4848 --> $DIR/issue-32995.rs:24:37
4949 |
5050LL | let o : Box<Send + ::std::marker()::Sync> = Box::new(1);
@@ -53,7 +53,7 @@ LL | let o : Box<Send + ::std::marker()::Sync> = Box::new(1);
5353 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
5454 = note: for more information, see issue #42238 <https://github.com/rust-lang/rust/issues/42238>
5555
56- error: parenthesized parameters may only be used with a trait
56+ error: parenthesized type parameters may only be used with a `Fn` trait
5757 --> $DIR/issue-32995.rs:30:14
5858 |
5959LL | let d : X() = Default::default();
0 commit comments