From 218caa410aa38c29984be31a5229b9fa717560ee Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:19:13 +0200 Subject: Merging upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- src/test/ui/consts/assoc-const.rs | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 src/test/ui/consts/assoc-const.rs (limited to 'src/test/ui/consts/assoc-const.rs') diff --git a/src/test/ui/consts/assoc-const.rs b/src/test/ui/consts/assoc-const.rs deleted file mode 100644 index f542f2dcb..000000000 --- a/src/test/ui/consts/assoc-const.rs +++ /dev/null @@ -1,21 +0,0 @@ -// run-pass -#![allow(unused_variables)] - -trait Nat { - const VALUE: usize; -} - -struct Zero; -struct Succ(#[allow(unused_tuple_struct_fields)] N); - -impl Nat for Zero { - const VALUE: usize = 0; -} - -impl Nat for Succ { - const VALUE: usize = N::VALUE + 1; -} - -fn main() { - let x: [i32; >>>>::VALUE] = [1, 2, 3, 4]; -} -- cgit v1.2.3