mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-07 09:13:07 +03:00
merge tests
This commit is contained in:
@@ -1,23 +0,0 @@
|
||||
// Regression test for #129541
|
||||
|
||||
//@ check-pass
|
||||
|
||||
trait Bound {}
|
||||
trait Normalize {
|
||||
type Assoc;
|
||||
}
|
||||
|
||||
impl<T: Bound> Normalize for T {
|
||||
type Assoc = T;
|
||||
}
|
||||
|
||||
impl<T: Bound> Normalize for [T] {
|
||||
type Assoc = T;
|
||||
}
|
||||
|
||||
impl Bound for Hello {}
|
||||
struct Hello {
|
||||
a: <[Hello] as Normalize>::Assoc,
|
||||
}
|
||||
|
||||
fn main() {}
|
||||
@@ -1,5 +1,6 @@
|
||||
// Regression test for #129541
|
||||
|
||||
//@ revisions: unique multiple
|
||||
//@ check-pass
|
||||
|
||||
trait Bound {}
|
||||
@@ -7,6 +8,10 @@ trait Normalize {
|
||||
type Assoc;
|
||||
}
|
||||
|
||||
#[cfg(multiple)]
|
||||
impl<T: Bound> Normalize for T {
|
||||
type Assoc = T;
|
||||
}
|
||||
impl<T: Bound> Normalize for [T] {
|
||||
type Assoc = T;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user