diff options
Diffstat (limited to 'tests/ui/issues/issue-36839.rs')
| -rw-r--r-- | tests/ui/issues/issue-36839.rs | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/tests/ui/issues/issue-36839.rs b/tests/ui/issues/issue-36839.rs deleted file mode 100644 index 654c0f6e4b5..00000000000 --- a/tests/ui/issues/issue-36839.rs +++ /dev/null @@ -1,21 +0,0 @@ -//@ check-pass - -pub trait Foo { - type Bar; -} - -pub trait Broken { - type Assoc; - fn broken(&self) where Self::Assoc: Foo; -} - -impl<T> Broken for T { - type Assoc = (); - fn broken(&self) where Self::Assoc: Foo { - let _x: <Self::Assoc as Foo>::Bar; - } -} - -fn main() { - let _m: &dyn Broken<Assoc=()> = &(); -} |
