mirror of
https://github.com/ratatui/ratatui.git
synced 2025-09-28 21:41:49 +00:00

### Overview Updated the `.stderr` file corresponding to the `ratatui-macros/tests/ui/fails.rs` compile-fail test. ### Changes - Updated `tests/ui/fails.stderr` to match the new compiler output. ### Impact - Affects only the trybuild UI tests - No impact on production code ### Notes - The `.stderr` was generated using `TRYBUILD=overwrite cargo test`. Closes https://github.com/ratatui/ratatui/issues/2094 Signed-off-by: Shingo OKAWA <shingo.okawa.g.h.c@gmail.com>
53 lines
1.8 KiB
Plaintext
53 lines
1.8 KiB
Plaintext
error: No rules expected the token `,` while trying to match the end of the macro
|
|
--> tests/ui/fails.rs:5:5
|
|
|
|
|
5 | constraints![,];
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
= note: this error originates in the macro `$crate::constraints` which comes from the expansion of the macro `constraints` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: unexpected end of macro invocation
|
|
--> tests/ui/fails.rs:8:18
|
|
|
|
|
8 | let [a, b] = constraints![
|
|
| __________________^
|
|
9 | | == 1/2,
|
|
10 | | == 2,
|
|
11 | | ];
|
|
| |_____^ missing tokens in macro arguments
|
|
|
|
|
note: while trying to match `==`
|
|
--> src/layout.rs
|
|
|
|
|
| (== $token:tt %) => {
|
|
| ^^
|
|
= note: this error originates in the macro `$crate::constraints` which comes from the expansion of the macro `constraints` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: no rules expected `;`
|
|
--> tests/ui/fails.rs:15:53
|
|
|
|
|
15 | let [a, b, c] = constraints![ == 1, == 10%, == 2; 4];
|
|
| ^ no rules expected this token in macro call
|
|
|
|
|
note: while trying to match `%`
|
|
--> src/layout.rs
|
|
|
|
|
| (== $token:tt %) => {
|
|
| ^
|
|
|
|
error: first parameter must be a formatting specifier followed by a comma OR a `Style` followed by a semicolon
|
|
--> tests/ui/fails.rs:17:13
|
|
|
|
|
17 | let _ = span!(Modifier::BOLD, "hello world");
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: this error originates in the macro `span` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: argument never used
|
|
--> tests/ui/fails.rs:19:28
|
|
|
|
|
19 | let _ = span!("hello", "hello world");
|
|
| ------- ^^^^^^^^^^^^^ argument never used
|
|
| |
|
|
| formatting specifier missing
|