Skip to content
Permalink
Browse files

improve comment

  • Loading branch information...
arielb1 committed Sep 18, 2019
1 parent d7eb562 commit 5de1fafb1569ad12f039562ca86f14730d970a3b
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/test/ui/traits/reservation-impls/reservation-impl-non-lattice-ok.rs
@@ -16,10 +16,10 @@
// thing we thought about - see e.g.
// https://github.com/rust-lang/rust/issues/57012#issuecomment-452150775
//
// 2. The other way is to notice that `impl From<!> for T` is basically a marker
// trait, as you say since its only method is uninhabited, and allow for "marker
// trait overlap", where the conflict "doesn't matter" as there is nothing that
// can cause a conflict.
// 2. The other way is to notice that `impl From<!> for T` is basically a
// marker trait since its only method is uninhabited, and allow for "marker
// trait overlap", where the conflict "doesn't matter" because it can't
// actually cause any ambiguity.
//
// Now it turned out lattice specialization doesn't work it, because an
// `impl<T> From<T> for Smaht<T>` would require a `impl From<!> for Smaht<!>`,

0 comments on commit 5de1faf

Please sign in to comment.
You can’t perform that action at this time.