Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
traits
/
issue-95898.rs
blob: 31b7e79c575dd1f42faaf9c4cd19ba5d41b87c09 [
file
] [
log
] [
blame
] [
edit
]
// 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
()
{}