]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-32995.stderr
Merge commit '0c89065b934397b62838fe3e4ef6f6352fc52daf' into libgccjit-codegen
[rust.git] / src / test / ui / issues / issue-32995.stderr
1 error[E0214]: parenthesized type parameters may only be used with a `Fn` trait
2   --> $DIR/issue-32995.rs:2:12
3    |
4 LL |     let x: usize() = 1;
5    |            ^^^^^^^ only `Fn` traits may use parentheses
6
7 error[E0214]: parenthesized type parameters may only be used with a `Fn` trait
8   --> $DIR/issue-32995.rs:5:19
9    |
10 LL |     let b: ::std::boxed()::Box<_> = Box::new(1);
11    |                   ^^^^^^^ only `Fn` traits may use parentheses
12
13 error[E0214]: parenthesized type parameters may only be used with a `Fn` trait
14   --> $DIR/issue-32995.rs:8:20
15    |
16 LL |     let p = ::std::str::()::from_utf8(b"foo").unwrap();
17    |                    ^^^^^^^ only `Fn` traits may use parentheses
18
19 error[E0214]: parenthesized type parameters may only be used with a `Fn` trait
20   --> $DIR/issue-32995.rs:11:25
21    |
22 LL |     let p = ::std::str::from_utf8::()(b"foo").unwrap();
23    |                         ^^^^^^^^^^^^^ only `Fn` traits may use parentheses
24
25 error[E0214]: parenthesized type parameters may only be used with a `Fn` trait
26   --> $DIR/issue-32995.rs:14:29
27    |
28 LL |     let o : Box<dyn (::std::marker()::Send)> = Box::new(1);
29    |                             ^^^^^^^^ only `Fn` traits may use parentheses
30
31 error[E0214]: parenthesized type parameters may only be used with a `Fn` trait
32   --> $DIR/issue-32995.rs:17:35
33    |
34 LL |     let o : Box<dyn Send + ::std::marker()::Sync> = Box::new(1);
35    |                                   ^^^^^^^^ only `Fn` traits may use parentheses
36
37 error[E0214]: parenthesized type parameters may only be used with a `Fn` trait
38   --> $DIR/issue-32995.rs:22:13
39    |
40 LL |     let d : X() = Default::default();
41    |             ^^^ only `Fn` traits may use parentheses
42
43 error: aborting due to 7 previous errors
44
45 For more information about this error, try `rustc --explain E0214`.