diff options
Diffstat (limited to 'tests/ui/traits/new-solver/canonical-int-var-eq-in-response.rs')
-rw-r--r-- | tests/ui/traits/new-solver/canonical-int-var-eq-in-response.rs | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/tests/ui/traits/new-solver/canonical-int-var-eq-in-response.rs b/tests/ui/traits/new-solver/canonical-int-var-eq-in-response.rs deleted file mode 100644 index 4b013983a..000000000 --- a/tests/ui/traits/new-solver/canonical-int-var-eq-in-response.rs +++ /dev/null @@ -1,22 +0,0 @@ -// compile-flags: -Ztrait-solver=next -// check-pass - -trait Mirror { - type Assoc; -} - -impl<T> Mirror for T { - type Assoc = T; -} - -trait Test {} -impl Test for i64 {} -impl Test for u64 {} - -fn mirror_me<T: Mirror>(t: T, s: <T as Mirror>::Assoc) where <T as Mirror>::Assoc: Test {} - -fn main() { - let mut x = 0; - mirror_me(x, 1); - x = 1i64; -} |