We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
TyCompat
1 parent 4074d49 commit b178ad6Copy full SHA for b178ad6
library/core/src/marker.rs
@@ -1097,7 +1097,6 @@ pub mod effects {
1097
pub trait TyCompat<T: ?Sized> {}
1098
1099
impl<T: ?Sized> TyCompat<T> for T {}
1100
- impl<T: ?Sized> TyCompat<T> for Maybe {}
1101
impl<T: ?Sized> TyCompat<Maybe> for T {}
1102
1103
#[lang = "EffectsIntersection"]
tests/ui/rfcs/rfc-2632-const-trait-impl/super-traits-fail.rs
@@ -1,4 +1,4 @@
1
-//@ check-pass
+//~ ERROR the trait bound
2
//@ compile-flags: -Znext-solver
3
4
#![allow(incomplete_features)]
@@ -17,6 +17,6 @@ impl Foo for S {
17
}
18
19
impl const Bar for S {}
20
-//FIXME ~^ ERROR the trait bound
+// FIXME(effects) bad span
21
22
fn main() {}
0 commit comments