Skip to content

Commit b178ad6

Browse files
committed
remove invalid TyCompat relation for effects
1 parent 4074d49 commit b178ad6

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

library/core/src/marker.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1097,7 +1097,6 @@ pub mod effects {
10971097
pub trait TyCompat<T: ?Sized> {}
10981098

10991099
impl<T: ?Sized> TyCompat<T> for T {}
1100-
impl<T: ?Sized> TyCompat<T> for Maybe {}
11011100
impl<T: ?Sized> TyCompat<Maybe> for T {}
11021101

11031102
#[lang = "EffectsIntersection"]

tests/ui/rfcs/rfc-2632-const-trait-impl/super-traits-fail.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//@ check-pass
1+
//~ ERROR the trait bound
22
//@ compile-flags: -Znext-solver
33

44
#![allow(incomplete_features)]
@@ -17,6 +17,6 @@ impl Foo for S {
1717
}
1818

1919
impl const Bar for S {}
20-
//FIXME ~^ ERROR the trait bound
20+
// FIXME(effects) bad span
2121

2222
fn main() {}

0 commit comments

Comments
 (0)