You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/test/ui/never-from-impl-is-reserved.stderr
+2
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,8 @@ LL | impl MyTrait for MyFoo {}
6
6
LL | // This will conflict with the first impl if we impl `for<T> T: From<!>`.
7
7
LL | impl<T> MyTrait for T where T: From<!> {}
8
8
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `MyFoo`
9
+
|
10
+
= note: a future version of Rust might implement `From<!>` for all types. However, it is OK to implement `From<!>` for types you own - when the blanket impl will be added, coherence will be changed to make these impls not be an error.
0 commit comments