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 {
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" ]
Original file line number Diff line number Diff line change 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
1919impl const Bar for S { }
20- //FIXME ~^ ERROR the trait bound
20+ // FIXME(effects) bad span
2121
2222fn 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