2023-08-14 04:51:19 -05:00
|
|
|
error: incorrect parentheses around trait bounds
|
2024-02-12 18:17:19 -06:00
|
|
|
--> $DIR/issue-114797-bad-parentheses-dyn-trait.rs:6:30
|
2023-08-14 04:51:19 -05:00
|
|
|
|
|
2024-02-12 18:17:19 -06:00
|
|
|
LL | fn assert_send() -> *mut dyn (Trait + Send) {
|
|
|
|
| ^ ^
|
2023-08-14 04:51:19 -05:00
|
|
|
|
|
|
|
|
help: fix the parentheses
|
|
|
|
|
|
2024-02-12 18:17:19 -06:00
|
|
|
LL - fn assert_send() -> *mut dyn (Trait + Send) {
|
|
|
|
LL + fn assert_send() -> *mut (dyn Trait + Send) {
|
2023-08-14 04:51:19 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
error: incorrect parentheses around trait bounds
|
|
|
|
--> $DIR/issue-114797-bad-parentheses-dyn-trait.rs:11:17
|
|
|
|
|
|
|
|
|
LL | fn foo2(_: &dyn (Trait + Send)) {}
|
|
|
|
| ^ ^
|
|
|
|
|
|
|
|
|
help: fix the parentheses
|
|
|
|
|
|
|
|
|
LL - fn foo2(_: &dyn (Trait + Send)) {}
|
|
|
|
LL + fn foo2(_: &(dyn Trait + Send)) {}
|
|
|
|
|
|
|
|
|
|
|
|
|
error: incorrect parentheses around trait bounds
|
|
|
|
--> $DIR/issue-114797-bad-parentheses-dyn-trait.rs:14:16
|
|
|
|
|
|
|
|
|
LL | fn foo3(_: &dyn(Trait + Send)) {}
|
|
|
|
| ^ ^
|
|
|
|
|
|
|
|
|
help: fix the parentheses
|
|
|
|
|
|
|
|
|
LL - fn foo3(_: &dyn(Trait + Send)) {}
|
|
|
|
LL + fn foo3(_: &(dyn Trait + Send)) {}
|
|
|
|
|
|
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|