]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/issue-25810.rs
Make RFC 1214 warnings into errors, and rip out the "warn or err"
[rust.git] / src / test / run-pass / issue-25810.rs
index 49a0642ce184dd3981a4cebfb08f197c5027adc8..820872ad3fc501b84f6006d43abe9f9e470dd992 100644 (file)
@@ -14,7 +14,9 @@ fn main() {
     println!("{:?}",y);
 }
 
-trait Foo {
+trait Foo
+    where for<'a> &'a Self: Bar
+{
     fn foo<'a>(&'a self) -> <&'a Self as Bar>::Output;
 }