mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 08:44:35 +00:00
Add a test for #3006
This commit is contained in:
parent
829dbfabe9
commit
8021b29405
@ -97,3 +97,12 @@ trait FooBar = Foo
|
||||
auto trait Example {}
|
||||
pub auto trait PubExample {}
|
||||
pub unsafe auto trait PubUnsafeExample {}
|
||||
|
||||
// #3006
|
||||
trait Foo<'a> {
|
||||
type Bar< 'a >;
|
||||
}
|
||||
|
||||
impl<'a> Foo<'a> for i32 {
|
||||
type Bar< 'a > = i32;
|
||||
}
|
||||
|
@ -135,3 +135,12 @@ trait FooBar = Foo
|
||||
auto trait Example {}
|
||||
pub auto trait PubExample {}
|
||||
pub unsafe auto trait PubUnsafeExample {}
|
||||
|
||||
// #3006
|
||||
trait Foo<'a> {
|
||||
type Bar<'a>;
|
||||
}
|
||||
|
||||
impl<'a> Foo<'a> for i32 {
|
||||
type Bar<'a> = i32;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user