about summary refs log tree commit diff
path: root/src/test/ui/try-block
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2020-03-22 15:36:54 -0700
committerEsteban Küber <esteban@kuber.com.ar>2020-03-22 15:36:54 -0700
commit854b78fe22af2ed010cc4367c3456eccf427b6dc (patch)
treeba28904fbb2de8e40498a9f397499d7856294742 /src/test/ui/try-block
parent94bbd46682fdf37aae7fe661e9f925649d439c36 (diff)
downloadrust-854b78fe22af2ed010cc4367c3456eccf427b6dc.tar.gz
rust-854b78fe22af2ed010cc4367c3456eccf427b6dc.zip
Normalize wording of privacy access labels
Diffstat (limited to 'src/test/ui/try-block')
-rw-r--r--src/test/ui/try-block/try-block-in-edition2015.stderr6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/test/ui/try-block/try-block-in-edition2015.stderr b/src/test/ui/try-block/try-block-in-edition2015.stderr
index 9b4fe2c1205..fe870ab737c 100644
--- a/src/test/ui/try-block/try-block-in-edition2015.stderr
+++ b/src/test/ui/try-block/try-block-in-edition2015.stderr
@@ -11,9 +11,13 @@ error[E0574]: expected struct, variant or union type, found macro `try`
   --> $DIR/try-block-in-edition2015.rs:4:33
    |
 LL |     let try_result: Option<_> = try {
-   |                                 ^^^ help: use `!` to invoke the macro: `try!`
+   |                                 ^^^
    |
    = note: if you want the `try` keyword, you need to be in the 2018 edition
+help: use `!` to invoke the macro
+   |
+LL |     let try_result: Option<_> = try! {
+   |                                    ^
 
 error: aborting due to 2 previous errors