2016-10-19 17:17:35 -04:00
|
|
|
// Test that you cannot add an extra where clause in the impl relating
|
|
|
|
// two regions.
|
2016-10-03 16:00:09 -04:00
|
|
|
|
2016-10-05 10:17:14 -04:00
|
|
|
trait Master<'a, 'b> {
|
|
|
|
fn foo();
|
2016-10-03 16:00:09 -04:00
|
|
|
}
|
|
|
|
|
2016-10-05 10:17:14 -04:00
|
|
|
impl<'a, 'b> Master<'a, 'b> for () {
|
2017-11-20 13:13:27 +01:00
|
|
|
fn foo() where 'a: 'b { } //~ ERROR impl has stricter
|
2016-10-03 16:00:09 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
println!("Hello, world!");
|
|
|
|
}
|