From 1b67035579fc6157ca2f3fb8b7e6071ff6d888bc Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Fri, 21 Jun 2024 14:03:08 +0200 Subject: Update `tests/rustdoc` to new test syntax --- tests/rustdoc/source-code-highlight.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'tests/rustdoc/source-code-highlight.rs') diff --git a/tests/rustdoc/source-code-highlight.rs b/tests/rustdoc/source-code-highlight.rs index 0a1be791ec2..f1c905e64c0 100644 --- a/tests/rustdoc/source-code-highlight.rs +++ b/tests/rustdoc/source-code-highlight.rs @@ -4,26 +4,26 @@ //@ compile-flags: -Zunstable-options --generate-link-to-definition #![crate_name = "foo"] -// @has 'src/foo/source-code-highlight.rs.html' +//@ has 'src/foo/source-code-highlight.rs.html' -// @hasraw - 'foo' +//@ hasraw - 'foo' #[macro_export] macro_rules! foo { () => {} } -// @hasraw - 'foo!' +//@ hasraw - 'foo!' foo! {} -// @hasraw - 'f' +//@ hasraw - 'f' #[rustfmt::skip] pub fn f () {} -// @hasraw - 'Bar' -// @hasraw - 'Bar' -// @hasraw - 'u32' +//@ hasraw - 'Bar' +//@ hasraw - 'Bar' +//@ hasraw - 'u32' #[rustfmt::skip] pub struct Bar ( u32 ); -// @hasraw - 'Foo' +//@ hasraw - 'Foo' pub enum Foo { A, } -- cgit 1.4.1-3-g733a5