2022-04-13 11:02:01 -03:00
|
|
|
// Test for #95898: The trait suggestion had an extra `:` after the trait.
|
2024-02-16 20:02:50 +00:00
|
|
|
//@ edition:2021
|
2022-04-13 11:02:01 -03:00
|
|
|
|
|
|
|
|
fn foo<T:>(t: T) {
|
|
|
|
|
t.clone();
|
|
|
|
|
//~^ ERROR no method named `clone` found for type parameter `T` in the current scope
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn main() {}
|