1
- error: parenthesized parameters may only be used with a trait
1
+ error: parenthesized type parameters may only be used with a `Fn` trait
2
2
--> $DIR/issue-32995.rs:4:17
3
3
|
4
4
LL | let x: usize() = 1;
@@ -8,7 +8,7 @@ LL | let x: usize() = 1;
8
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
9
= note: for more information, see issue #42238 <https://github.com/rust-lang/rust/issues/42238>
10
10
11
- error: parenthesized parameters may only be used with a trait
11
+ error: parenthesized type parameters may only be used with a `Fn` trait
12
12
--> $DIR/issue-32995.rs:8:24
13
13
|
14
14
LL | let b: ::std::boxed()::Box<_> = Box::new(1);
@@ -17,7 +17,7 @@ LL | let b: ::std::boxed()::Box<_> = Box::new(1);
17
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
18
= note: for more information, see issue #42238 <https://github.com/rust-lang/rust/issues/42238>
19
19
20
- error: parenthesized parameters may only be used with a trait
20
+ error: parenthesized type parameters may only be used with a `Fn` trait
21
21
--> $DIR/issue-32995.rs:12:25
22
22
|
23
23
LL | let p = ::std::str::()::from_utf8(b"foo").unwrap();
@@ -26,7 +26,7 @@ LL | let p = ::std::str::()::from_utf8(b"foo").unwrap();
26
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
27
= note: for more information, see issue #42238 <https://github.com/rust-lang/rust/issues/42238>
28
28
29
- error: parenthesized parameters may only be used with a trait
29
+ error: parenthesized type parameters may only be used with a `Fn` trait
30
30
--> $DIR/issue-32995.rs:16:36
31
31
|
32
32
LL | let p = ::std::str::from_utf8::()(b"foo").unwrap();
@@ -35,7 +35,7 @@ LL | let p = ::std::str::from_utf8::()(b"foo").unwrap();
35
35
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
36
36
= note: for more information, see issue #42238 <https://github.com/rust-lang/rust/issues/42238>
37
37
38
- error: parenthesized parameters may only be used with a trait
38
+ error: parenthesized type parameters may only be used with a `Fn` trait
39
39
--> $DIR/issue-32995.rs:20:30
40
40
|
41
41
LL | let o : Box<::std::marker()::Send> = Box::new(1);
@@ -44,7 +44,7 @@ LL | let o : Box<::std::marker()::Send> = Box::new(1);
44
44
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
45
45
= note: for more information, see issue #42238 <https://github.com/rust-lang/rust/issues/42238>
46
46
47
- error: parenthesized parameters may only be used with a trait
47
+ error: parenthesized type parameters may only be used with a `Fn` trait
48
48
--> $DIR/issue-32995.rs:24:37
49
49
|
50
50
LL | 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);
53
53
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
54
54
= note: for more information, see issue #42238 <https://github.com/rust-lang/rust/issues/42238>
55
55
56
- error: parenthesized parameters may only be used with a trait
56
+ error: parenthesized type parameters may only be used with a `Fn` trait
57
57
--> $DIR/issue-32995.rs:30:14
58
58
|
59
59
LL | let d : X() = Default::default();
0 commit comments