1 // Checks to make sure that `dyn Trait + Send` and `dyn Trait + Send + Send` are the same type.
5 impl Trait for Struct {}
8 type Send1 = dyn Trait + Send;
9 type Send2 = dyn Trait + Send + Send;
13 impl dyn Trait + Send {
14 fn test(&self) { println!("one"); } //~ ERROR duplicate definitions with name `test`
17 impl dyn Trait + Send + Send {
18 fn test(&self) { println!("two"); }