Skip to content

Commit e5954cd

Browse files
committed
Update test -- here we get a RFC 1214 warning (that will eventually be
an error) but the bugfix causes this warning to propagate and become an unresolved variable instead of a `TyError`, so we wind up seeing an obscure inference error afterwards, which is somewhat unfortunate, and suggests this bugfix can cause RFC 1214 warnings to become errors.
1 parent 06fc8bb commit e5954cd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/test/run-pass/issue-25810.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ fn main() {
1414
println!("{:?}",y);
1515
}
1616

17-
trait Foo {
17+
trait Foo
18+
where for<'a> &'a Self: Bar
19+
{
1820
fn foo<'a>(&'a self) -> <&'a Self as Bar>::Output;
1921
}
2022

0 commit comments

Comments
 (0)