]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/orphan-check-diagnostics.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / orphan-check-diagnostics.stderr
index cb21b26bba75af4e15b805b6d7fffc89cfcd3a64..c84d401898c91b5772d2142e9bda7854cb55901d 100644 (file)
@@ -4,6 +4,7 @@ error[E0210]: type parameter `T` must be used as the type parameter for some loc
 LL | impl<T> RemoteTrait for T where T: LocalTrait {}
    |      ^ type parameter `T` must be used as the type parameter for some local type
    |
+   = note: implementing a foreign trait is only possible if at least one of the types for which is it implemented is local
    = note: only traits defined in the current crate can be implemented for a type parameter
 
 error: aborting due to previous error