Skip to content

Commit 5de1faf

Browse files
committed
improve comment
1 parent d7eb562 commit 5de1faf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/test/ui/traits/reservation-impls/reservation-impl-non-lattice-ok.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
// thing we thought about - see e.g.
1717
// https://github.com/rust-lang/rust/issues/57012#issuecomment-452150775
1818
//
19-
// 2. The other way is to notice that `impl From<!> for T` is basically a marker
20-
// trait, as you say since its only method is uninhabited, and allow for "marker
21-
// trait overlap", where the conflict "doesn't matter" as there is nothing that
22-
// can cause a conflict.
19+
// 2. The other way is to notice that `impl From<!> for T` is basically a
20+
// marker trait since its only method is uninhabited, and allow for "marker
21+
// trait overlap", where the conflict "doesn't matter" because it can't
22+
// actually cause any ambiguity.
2323
//
2424
// Now it turned out lattice specialization doesn't work it, because an
2525
// `impl<T> From<T> for Smaht<T>` would require a `impl From<!> for Smaht<!>`,

0 commit comments

Comments
 (0)