]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/issue-21673.rs
Rollup merge of #106323 - starkat99:stabilize-f16c_target_feature, r=petrochenkov
[rust.git] / tests / ui / suggestions / issue-21673.rs
1 trait Foo {
2     fn method(&self) {}
3 }
4
5 fn call_method<T: std::fmt::Debug>(x: &T) {
6     x.method() //~ ERROR E0599
7 }
8
9 fn call_method_2<T>(x: T) {
10     x.method() //~ ERROR E0599
11 }
12
13 fn main() {}