blob: b01f02bbafa89d3cc1fef31d009cbbbcd63456a5 [file]
error: precise capturing lists may not be parenthesized
--> $DIR/parenthesized.rs:4:24
|
LL | fn f() -> impl Sized + (use<>) {}
| ^^^^^^^
|
help: remove the parentheses
|
LL - fn f() -> impl Sized + (use<>) {}
LL + fn f() -> impl Sized + use<> {}
|
error: precise capturing lists may not be parenthesized
--> $DIR/parenthesized.rs:9:18
|
LL | type O = Trait + (use<>);
| ^^^^^^^
|
help: remove the parentheses
|
LL - type O = Trait + (use<>);
LL + type O = Trait + use<>;
|
error[E0178]: expected a path on the left-hand side of `+`
--> $DIR/parenthesized.rs:15:10
|
LL | type O = (use<>) + Trait;
| ^^^^^^^ expected a path
error: aborting due to 3 previous errors
For more information about this error, try `rustc --explain E0178`.