diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2022-04-09 18:15:35 +0200 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2022-06-10 20:16:35 +0200 |
| commit | 06af25e4f188946d9aba1c5f52ef7eec8fb29a45 (patch) | |
| tree | c736ffe039d451ce50508ef58228f2544965ae27 /src/test/ui/span | |
| parent | 871993f7a19794a01cd229a4a9810c1a0fc574f7 (diff) | |
Bless tests.
Diffstat (limited to 'src/test/ui/span')
| -rw-r--r-- | src/test/ui/span/missing-unit-argument.stderr | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/ui/span/missing-unit-argument.stderr b/src/test/ui/span/missing-unit-argument.stderr index c8e1a232887..e68260e4a09 100644 --- a/src/test/ui/span/missing-unit-argument.stderr +++ b/src/test/ui/span/missing-unit-argument.stderr @@ -4,6 +4,11 @@ error[E0061]: this enum variant takes 1 argument but 0 arguments were supplied LL | let _: Result<(), String> = Ok(); | ^^-- an argument of type `()` is missing | +note: tuple variant defined here + --> $SRC_DIR/core/src/result.rs:LL:COL + | +LL | Ok(#[stable(feature = "rust1", since = "1.0.0")] T), + | ^^ help: provide the argument | LL | let _: Result<(), String> = Ok(()); |
