This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +13
-3
lines changed
tests/ui/rfcs/rfc-2632-const-trait-impl Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -1097,7 +1097,6 @@ pub mod effects {
1097
1097
pub trait TyCompat < T : ?Sized > { }
1098
1098
1099
1099
impl < T : ?Sized > TyCompat < T > for T { }
1100
- impl < T : ?Sized > TyCompat < T > for Maybe { }
1101
1100
impl < T : ?Sized > TyCompat < Maybe > for T { }
1102
1101
1103
1102
#[ lang = "EffectsIntersection" ]
Original file line number Diff line number Diff line change 1
- //@ check-pass
1
+ //~ ERROR the trait bound
2
2
//@ compile-flags: -Znext-solver
3
3
4
4
#![ allow( incomplete_features) ]
@@ -17,6 +17,6 @@ impl Foo for S {
17
17
}
18
18
19
19
impl const Bar for S { }
20
- //FIXME ~^ ERROR the trait bound
20
+ // FIXME(effects) bad span
21
21
22
22
fn main ( ) { }
Original file line number Diff line number Diff line change
1
+ error[E0277]: the trait bound `Maybe: TyCompat<<(Foo::{synthetic#0},) as std::marker::effects::Intersection>::Output>` is not satisfied
2
+ |
3
+ note: required by a bound in `Bar::{synthetic#0}`
4
+ --> $DIR/super-traits-fail.rs:11:1
5
+ |
6
+ LL | #[const_trait]
7
+ | ^^^^^^^^^^^^^^ required by this bound in `Bar::{synthetic#0}`
8
+
9
+ error: aborting due to 1 previous error
10
+
11
+ For more information about this error, try `rustc --explain E0277`.
You can’t perform that action at this time.
0 commit comments