Sign in
chromium
/
external
/
github.com
/
rust-lang
/
rust
/
4b3ece475d6e77465a30c8b53d7e1e9e861e4b79
/
.
/
tests
/
ui
/
traits
/
issue-95898.rs
blob: 41a20b899599a7668d622404cdf3c8487bc93e96 [
file
] [
log
] [
blame
]
// 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
()
{}