]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/coherence/impl[t]-foreign[foreign]-for-t.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / coherence / impl[t]-foreign[foreign]-for-t.stderr
index 3d9afdf6cf6051f970ab65110a578db4b09e3810..e8663fd7d820d9078c050812a187168aba70effd 100644 (file)
@@ -1,9 +1,10 @@
 error[E0210]: type parameter `T` must be used as the type parameter for some local type (e.g., `MyStruct<T>`)
-  --> $DIR/impl[t]-foreign[foreign]-for-t.rs:12:6
+  --> $DIR/impl[t]-foreign[foreign]-for-t.rs:10:6
    |
 LL | impl<T> Remote1<u32> for T {
    |      ^ 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