mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 15:01:51 +00:00
20 lines
308 B
Rust
20 lines
308 B
Rust
// Test that directly specializing on repeated lifetime parameters is not
|
|
// allowed.
|
|
|
|
#![feature(min_specialization)]
|
|
|
|
trait X {
|
|
fn f();
|
|
}
|
|
|
|
impl<T> X for T {
|
|
default fn f() {}
|
|
}
|
|
|
|
impl<'a> X for (&'a u8, &'a u8) {
|
|
//~^ ERROR specializing impl repeats parameter `'a`
|
|
fn f() {}
|
|
}
|
|
|
|
fn main() {}
|