summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/issue-21673.rs
blob: 9d66cae056a81187de56596e02eb115cf2c0549c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
trait Foo {
    fn method(&self) {}
}

fn call_method<T: std::fmt::Debug>(x: &T) {
    x.method() //~ ERROR E0599
}

fn call_method_2<T>(x: T) {
    x.method() //~ ERROR E0599
}

fn main() {}