]> git.lizzy.rs Git - rust.git/blob - src/test/ui/unboxed-closures/unboxed-closure-sugar-used-on-struct-3.stderr
Sync rust-lang/portable-simd@5f49d4c8435a25d804b2f375e949cb25479f5be9
[rust.git] / src / test / ui / unboxed-closures / unboxed-closure-sugar-used-on-struct-3.stderr
1 error[E0214]: parenthesized type parameters may only be used with a `Fn` trait
2   --> $DIR/unboxed-closure-sugar-used-on-struct-3.rs:14:13
3    |
4 LL |     let b = Bar::(isize, usize)::new(); // OK too (for the parser)
5    |             ^^^^^^^^^^^^^^^^^^^
6    |             |
7    |             only `Fn` traits may use parentheses
8    |             help: use angle brackets instead: `Bar::<isize, usize>`
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0214`.