1 error[E0214]: parenthesized type parameters may only be used with a `Fn` trait
2 --> $DIR/issue-32995.rs:2:12
4 LL | let x: usize() = 1;
5 | ^^^^^^^ only `Fn` traits may use parentheses
7 error[E0214]: parenthesized type parameters may only be used with a `Fn` trait
8 --> $DIR/issue-32995.rs:5:19
10 LL | let b: ::std::boxed()::Box<_> = Box::new(1);
11 | ^^^^^^^ only `Fn` traits may use parentheses
13 error[E0214]: parenthesized type parameters may only be used with a `Fn` trait
14 --> $DIR/issue-32995.rs:8:20
16 LL | let p = ::std::str::()::from_utf8(b"foo").unwrap();
17 | ^^^^^^^ only `Fn` traits may use parentheses
19 error[E0214]: parenthesized type parameters may only be used with a `Fn` trait
20 --> $DIR/issue-32995.rs:11:25
22 LL | let p = ::std::str::from_utf8::()(b"foo").unwrap();
23 | ^^^^^^^^^^^^^ only `Fn` traits may use parentheses
25 error[E0214]: parenthesized type parameters may only be used with a `Fn` trait
26 --> $DIR/issue-32995.rs:14:29
28 LL | let o : Box<dyn (::std::marker()::Send)> = Box::new(1);
29 | ^^^^^^^^ only `Fn` traits may use parentheses
31 error[E0214]: parenthesized type parameters may only be used with a `Fn` trait
32 --> $DIR/issue-32995.rs:17:35
34 LL | let o : Box<dyn Send + ::std::marker()::Sync> = Box::new(1);
35 | ^^^^^^^^ only `Fn` traits may use parentheses
37 error[E0214]: parenthesized type parameters may only be used with a `Fn` trait
38 --> $DIR/issue-32995.rs:22:13
40 LL | let d : X() = Default::default();
41 | ^^^ only `Fn` traits may use parentheses
43 error: aborting due to 7 previous errors
45 For more information about this error, try `rustc --explain E0214`.