mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 02:33:55 +00:00
Add additional test from rust issue number 91068
This commit is contained in:
parent
18bb8c61a9
commit
51875e3d5a
22
src/test/ui/fn/implied-bounds-unnorm-associated-type-2.rs
Normal file
22
src/test/ui/fn/implied-bounds-unnorm-associated-type-2.rs
Normal file
@ -0,0 +1,22 @@
|
||||
// build-pass
|
||||
|
||||
trait Trait {
|
||||
type Type;
|
||||
}
|
||||
|
||||
impl<T> Trait for T {
|
||||
type Type = ();
|
||||
}
|
||||
|
||||
fn f<'a, 'b>(_: <&'a &'b () as Trait>::Type)
|
||||
where
|
||||
'a: 'a,
|
||||
'b: 'b,
|
||||
{
|
||||
}
|
||||
|
||||
fn g<'a, 'b>() {
|
||||
f::<'a, 'b>(());
|
||||
}
|
||||
|
||||
fn main() {}
|
Loading…
Reference in New Issue
Block a user