blob: 4e562193f0d89ff15f05a4e579818730fbfa6fcf [file] [log] [blame] [edit]
//@run-rustfix
#![allow(dead_code)]
trait Trait {}
fn assert_send() -> *mut (dyn Trait + Send) {
//~^ ERROR incorrect parentheses around trait bounds
loop {}
}
fn foo2(_: &(dyn Trait + Send)) {}
//~^ ERROR incorrect parentheses around trait bounds
fn foo3(_: &(dyn Trait + Send)) {}
//~^ ERROR incorrect parentheses around trait bounds
fn main() {}