mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
14 lines
286 B
Rust
14 lines
286 B
Rust
|
//@ run-rustfix
|
||
|
#![allow(unused_variables, dead_code)]
|
||
|
|
||
|
trait Trait {
|
||
|
fn foo() where Self: Other, { }
|
||
|
fn bar(self: ()) {} //~ ERROR invalid `self` parameter type
|
||
|
}
|
||
|
|
||
|
fn bar(x: &dyn Trait) {} //~ ERROR the trait `Trait` cannot be made into an object
|
||
|
|
||
|
trait Other {}
|
||
|
|
||
|
fn main() {}
|