fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1//run-rustfix 2#![allow(dead_code)] 3 4trait Trait {} 5 6fn assert_send(ptr: *mut dyn Trait) -> *mut (dyn Trait + Send) { 7 //~^ ERROR incorrect parentheses around trait bounds 8 ptr as _ 9} 10 11fn foo2(_: &(dyn Trait + Send)) {} 12//~^ ERROR incorrect parentheses around trait bounds 13 14fn foo3(_: &(dyn Trait + Send)) {} 15//~^ ERROR incorrect parentheses around trait bounds 16 17fn main() {}