mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 15:01:51 +00:00
16 lines
185 B
Rust
16 lines
185 B
Rust
#![allow(dead_code)]
|
|
|
|
trait T1 { }
|
|
|
|
trait T2 {
|
|
fn test(&self) { }
|
|
}
|
|
|
|
fn go(s: &impl T1) {
|
|
//~^ SUGGESTION (
|
|
s.test();
|
|
//~^ ERROR no method named `test`
|
|
}
|
|
|
|
fn main() { }
|