fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: incorrect parentheses around trait bounds 2 --> $DIR/issue-114797-bad-parentheses-dyn-trait.rs:6:49 3 | 4LL | fn assert_send(ptr: *mut dyn Trait) -> *mut dyn (Trait + Send) { 5 | ^ ^ 6 | 7help: fix the parentheses 8 | 9LL - fn assert_send(ptr: *mut dyn Trait) -> *mut dyn (Trait + Send) { 10LL + fn assert_send(ptr: *mut dyn Trait) -> *mut (dyn Trait + Send) { 11 | 12 13error: incorrect parentheses around trait bounds 14 --> $DIR/issue-114797-bad-parentheses-dyn-trait.rs:11:17 15 | 16LL | fn foo2(_: &dyn (Trait + Send)) {} 17 | ^ ^ 18 | 19help: fix the parentheses 20 | 21LL - fn foo2(_: &dyn (Trait + Send)) {} 22LL + fn foo2(_: &(dyn Trait + Send)) {} 23 | 24 25error: incorrect parentheses around trait bounds 26 --> $DIR/issue-114797-bad-parentheses-dyn-trait.rs:14:16 27 | 28LL | fn foo3(_: &dyn(Trait + Send)) {} 29 | ^ ^ 30 | 31help: fix the parentheses 32 | 33LL - fn foo3(_: &dyn(Trait + Send)) {} 34LL + fn foo3(_: &(dyn Trait + Send)) {} 35 | 36 37error: aborting due to 3 previous errors 38