mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-24 22:44:26 +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() {}
|