about summary refs log tree commit diff
path: root/tests/ui/try-trait
diff options
context:
space:
mode:
authorsurechen <chenshuo17@huawei.com>2024-08-22 17:41:15 +0800
committersurechen <chenshuo17@huawei.com>2024-08-25 20:30:06 +0800
commit8750e2424744f6365fbbfd3a42059eb51091e736 (patch)
tree1733fa59b64a57100a1956eb4d41a610b02c2e3b /tests/ui/try-trait
parent739b1fdb158a3216d1b592d0d79d77d256f59815 (diff)
downloadrust-8750e2424744f6365fbbfd3a42059eb51091e736.tar.gz
rust-8750e2424744f6365fbbfd3a42059eb51091e736.zip
Fixing span manipulation and indentation of the suggestion introduced by #126187
According to comments:
https://github.com/rust-lang/rust/pull/128084#issuecomment-2295254576
https://github.com/rust-lang/rust/pull/126187/files#r1634897691
Diffstat (limited to 'tests/ui/try-trait')
-rw-r--r--tests/ui/try-trait/try-operator-on-main.stderr2
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/ui/try-trait/try-operator-on-main.stderr b/tests/ui/try-trait/try-operator-on-main.stderr
index d22117165c1..311e8076ed4 100644
--- a/tests/ui/try-trait/try-operator-on-main.stderr
+++ b/tests/ui/try-trait/try-operator-on-main.stderr
@@ -14,9 +14,7 @@ LL ~ fn main() -> Result<(), Box<dyn std::error::Error>> {
 LL |     // error for a `Try` type on a non-`Try` fn
 ...
 LL |     try_trait_generic::<()>();
-LL + 
 LL +     Ok(())
-LL + }
    |
 
 error[E0277]: the `?` operator can only be applied to values that implement `Try`