about summary refs log tree commit diff
path: root/tests/ui/generic-const-items
diff options
context:
space:
mode:
authorLeón Orell Valerian Liehr <me@fmease.dev>2025-06-26 15:15:21 +0200
committerLeón Orell Valerian Liehr <me@fmease.dev>2025-06-26 15:42:57 +0200
commit169e81cd5994c7612c795b6b2b45b787a7d57559 (patch)
tree42c898bc03e6313c2992e0dfb33832823ddf3565 /tests/ui/generic-const-items
parent40daf23eeb711dadf140b2536e67e3ff4c999196 (diff)
downloadrust-169e81cd5994c7612c795b6b2b45b787a7d57559.tar.gz
rust-169e81cd5994c7612c795b6b2b45b787a7d57559.zip
Move an ACE test out of the GCI directory
Diffstat (limited to 'tests/ui/generic-const-items')
-rw-r--r--tests/ui/generic-const-items/assoc-const-AnonConst-ice-108220.rs35
1 files changed, 0 insertions, 35 deletions
diff --git a/tests/ui/generic-const-items/assoc-const-AnonConst-ice-108220.rs b/tests/ui/generic-const-items/assoc-const-AnonConst-ice-108220.rs
deleted file mode 100644
index f5babb67b56..00000000000
--- a/tests/ui/generic-const-items/assoc-const-AnonConst-ice-108220.rs
+++ /dev/null
@@ -1,35 +0,0 @@
-// ICE assertion failed: matches!(self.def_kind(ct.def.did), DefKind :: AnonConst)
-// issue: rust-lang/rust#108220
-//@ check-pass
-
-#![feature(associated_const_equality)]
-#![allow(unused)]
-
-use std::marker::PhantomData;
-
-pub struct NoPin;
-
-pub trait SetAlternate<const A: u8> {}
-
-impl SetAlternate<0> for NoPin {}
-
-pub trait PinA<PER> {
-    const A: u8;
-}
-
-impl<PER> PinA<PER> for NoPin {
-    const A: u8 = 0;
-}
-
-pub trait Pins<USART> {}
-
-impl<USART, T, const TA: u8> Pins<USART> for T where
-    T: PinA<USART, A = { TA }> + SetAlternate<TA>
-{
-}
-
-struct Serial<USART>(PhantomData<USART>);
-
-impl<USART> Serial<USART> where NoPin: Pins<USART> {}
-
-fn main() {}