mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
18 lines
361 B
Rust
18 lines
361 B
Rust
//@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() {}
|