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 --- .../ui/associated-consts/assoc-const-eq-missing.rs | 26 ---------------------- 1 file changed, 26 deletions(-) delete mode 100644 src/test/ui/associated-consts/assoc-const-eq-missing.rs (limited to 'src/test/ui/associated-consts/assoc-const-eq-missing.rs') diff --git a/src/test/ui/associated-consts/assoc-const-eq-missing.rs b/src/test/ui/associated-consts/assoc-const-eq-missing.rs deleted file mode 100644 index 5e029a12d..000000000 --- a/src/test/ui/associated-consts/assoc-const-eq-missing.rs +++ /dev/null @@ -1,26 +0,0 @@ -#![feature(associated_const_equality)] -#![allow(unused)] - -pub trait Foo { - const N: usize; -} - -pub struct Bar; - -impl Foo for Bar { - const N: usize = 3; -} - - -fn foo1>() {} -//~^ ERROR associated type -fn foo2>() {} -//~^ ERROR associated type -fn foo3>() {} -//~^ ERROR associated type - -fn main() { - foo1::(); - foo2::(); - foo3::(); -} -- cgit v1.2.3