mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
10 lines
232 B
Rust
10 lines
232 B
Rust
|
// Test for #95898: The trait suggestion had an extra `:` after the trait.
|
||
|
//@ edition:2021
|
||
|
|
||
|
fn foo<T:>(t: T) {
|
||
|
t.clone();
|
||
|
//~^ ERROR no method named `clone` found for type parameter `T` in the current scope
|
||
|
}
|
||
|
|
||
|
fn main() {}
|