]> git.lizzy.rs Git - rust.git/blob - tests/ui/traits/issue-95898.rs
Merge commit '598f0909568a51de8a2d1148f55a644fd8dffad0' into sync_cg_clif-2023-01-24
[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() {}