Skip to content

Commit 665e295

Browse files
committed
move to higher-ranked
1 parent 3261438 commit 665e295

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

tests/ui/higher-ranked/subtype/structually-relate-aliases.rs renamed to tests/ui/higher-ranked/structually-relate-aliases.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// regression test for issue #121649.
2+
13
trait ToUnit<'a> {
24
type Unit;
35
}
@@ -9,7 +11,7 @@ type Assoc<'a, T> = <T as ToUnit<'a>>::Unit;
911
impl<T> Overlap<T> for T {}
1012

1113
impl<T> Overlap<for<'a> fn(&'a (), Assoc<'a, T>)> for T {}
12-
//~^ ERROR 11:17: 11:49: the trait bound `for<'a> T: ToUnit<'a>` is not satisfied [E0277]
13-
//~| ERROR 11:36: 11:48: the trait bound `for<'a> T: ToUnit<'a>` is not satisfied [E0277]
14+
//~^ ERROR 13:17: 13:49: the trait bound `for<'a> T: ToUnit<'a>` is not satisfied [E0277]
15+
//~| ERROR 13:36: 13:48: the trait bound `for<'a> T: ToUnit<'a>` is not satisfied [E0277]
1416

1517
fn main() {}

tests/ui/higher-ranked/subtype/structually-relate-aliases.stderr renamed to tests/ui/higher-ranked/structually-relate-aliases.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
WARN rustc_infer::infer::relate::generalize may incompletely handle alias type: AliasTy { args: [?1t, '^0.Named(DefId(0:15 ~ structually_relate_aliases[de75]::{impl#1}::'a), "'a")], def_id: DefId(0:5 ~ structually_relate_aliases[de75]::ToUnit::Unit) }
22
WARN rustc_infer::infer::relate::generalize may incompletely handle alias type: AliasTy { args: [?1t, !2_0.Named(DefId(0:15 ~ structually_relate_aliases[de75]::{impl#1}::'a), "'a")], def_id: DefId(0:5 ~ structually_relate_aliases[de75]::ToUnit::Unit) }
33
error[E0277]: the trait bound `for<'a> T: ToUnit<'a>` is not satisfied
4-
--> $DIR/structually-relate-aliases.rs:11:36
4+
--> $DIR/structually-relate-aliases.rs:13:36
55
|
66
LL | impl<T> Overlap<for<'a> fn(&'a (), Assoc<'a, T>)> for T {}
77
| ^^^^^^^^^^^^ the trait `for<'a> ToUnit<'a>` is not implemented for `T`
@@ -12,7 +12,7 @@ LL | impl<T: for<'a> ToUnit<'a>> Overlap<for<'a> fn(&'a (), Assoc<'a, T>)> for T
1212
| ++++++++++++++++++++
1313

1414
error[E0277]: the trait bound `for<'a> T: ToUnit<'a>` is not satisfied
15-
--> $DIR/structually-relate-aliases.rs:11:17
15+
--> $DIR/structually-relate-aliases.rs:13:17
1616
|
1717
LL | impl<T> Overlap<for<'a> fn(&'a (), Assoc<'a, T>)> for T {}
1818
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `for<'a> ToUnit<'a>` is not implemented for `T`

0 commit comments

Comments
 (0)