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/rustdoc-ui/doc-alias-assoc-const.rs | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 src/test/rustdoc-ui/doc-alias-assoc-const.rs (limited to 'src/test/rustdoc-ui/doc-alias-assoc-const.rs') diff --git a/src/test/rustdoc-ui/doc-alias-assoc-const.rs b/src/test/rustdoc-ui/doc-alias-assoc-const.rs deleted file mode 100644 index d95324734..000000000 --- a/src/test/rustdoc-ui/doc-alias-assoc-const.rs +++ /dev/null @@ -1,21 +0,0 @@ -#![feature(trait_alias)] - -pub struct Foo; - -pub trait Bar { - const BAZ: u8; -} - -impl Bar for Foo { - #[doc(alias = "CONST_BAZ")] //~ ERROR - const BAZ: u8 = 0; -} - -impl Foo { - #[doc(alias = "CONST_FOO")] // ok! - pub const FOO: u8 = 0; - - pub fn bar() -> u8 { - Self::FOO - } -} -- cgit v1.2.3