error[E0599]: no method named `method` found for type parameter `T` in the current scope
--> $DIR/issue-21673.rs:10:7
|
+LL | fn call_method_2<T>(x: T) {
+ | - method `method` not found for this type parameter
LL | x.method()
| ^^^^^^ method not found in `T`
|