diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/traits/issue-95898.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/ui/traits/issue-95898.rs b/src/test/ui/traits/issue-95898.rs new file mode 100644 index 000000000..41a20b899 --- /dev/null +++ b/src/test/ui/traits/issue-95898.rs @@ -0,0 +1,9 @@ +// 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() {} |