]> git.lizzy.rs Git - rust.git/blob - tests/ui/traits/issue-95898.rs
Rollup merge of #106144 - tgross35:patch-1, r=Mark-Simulacrum
[rust.git] / tests / ui / traits / issue-95898.rs
1 // Test for #95898: The trait suggestion had an extra `:` after the trait.
2 // edition:2021
3
4 fn foo<T:>(t: T) {
5     t.clone();
6     //~^ ERROR no method named `clone` found for type parameter `T` in the current scope
7 }
8
9 fn main() {}