]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/impl-trait/issues/issue-83929-impl-trait-in-generic-default.rs
New upstream version 1.55.0+dfsg1
[rustc.git] / src / test / ui / impl-trait / issues / issue-83929-impl-trait-in-generic-default.rs
index d9d2e3929b10c2cd3778b12f1527a6dbe814e09e..773cd0b81cc53ff6a2960ebee538d402a094ce3b 100644 (file)
@@ -1,8 +1,8 @@
 struct Foo<T = impl Copy>(T);
-//~^ ERROR `impl Trait` not allowed outside of function and inherent method return types
+//~^ ERROR `impl Trait` not allowed outside of function and method return types
 
 type Result<T, E = impl std::error::Error> = std::result::Result<T, E>;
-//~^ ERROR `impl Trait` not allowed outside of function and inherent method return types
+//~^ ERROR `impl Trait` not allowed outside of function and method return types
 
 // should not cause ICE
 fn x() -> Foo {