diff options
| author | Kivooeo <Kivooeo123@gmail.com> | 2025-07-01 18:24:12 +0500 |
|---|---|---|
| committer | Kivooeo <Kivooeo123@gmail.com> | 2025-07-05 00:45:24 +0500 |
| commit | b28806da237176468ab2afae42b51fe43ad416e6 (patch) | |
| tree | f0d5298f2f64415993c0456faf966d55e4b677e0 /tests/ui/parser | |
| parent | 986f1c9b692665d4e7388062b8d8536acb0c99fd (diff) | |
| download | rust-b28806da237176468ab2afae42b51fe43ad416e6.tar.gz rust-b28806da237176468ab2afae42b51fe43ad416e6.zip | |
cleaned up some tests
Diffstat (limited to 'tests/ui/parser')
| -rw-r--r-- | tests/ui/parser/doc-comment-in-generic.rs | 10 | ||||
| -rw-r--r-- | tests/ui/parser/raw/raw-string-literals.rs | bin | 848 -> 998 bytes |
2 files changed, 7 insertions, 3 deletions
diff --git a/tests/ui/parser/doc-comment-in-generic.rs b/tests/ui/parser/doc-comment-in-generic.rs index 84abe875910..2596496763b 100644 --- a/tests/ui/parser/doc-comment-in-generic.rs +++ b/tests/ui/parser/doc-comment-in-generic.rs @@ -1,9 +1,13 @@ +//! Tests correct parsing of doc comments on generic parameters in traits. +//! Checks that compiler doesn't panic when processing this. + //@ check-pass -// Check that it doesn't panic when `Input` gets its visibility checked. #![crate_type = "lib"] pub trait Layer< - /// Hello. + /// Documentation for generic parameter. Input, -> {} +> +{ +} diff --git a/tests/ui/parser/raw/raw-string-literals.rs b/tests/ui/parser/raw/raw-string-literals.rs index 23018403295..2272f268b36 100644 --- a/tests/ui/parser/raw/raw-string-literals.rs +++ b/tests/ui/parser/raw/raw-string-literals.rs Binary files differ |
