about summary refs log tree commit diff
path: root/tests/ui/try-trait/bad-question-mark-on-trait-object.rs
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2025-02-20 19:07:39 +0000
committerEsteban Küber <esteban@kuber.com.ar>2025-02-20 19:11:07 +0000
commit8ef535e03d8f34c7ad7aab14eea6a73bf4445b4c (patch)
treeade146fde98cbef7307db62e97f03980bb04cc38 /tests/ui/try-trait/bad-question-mark-on-trait-object.rs
parente565eeed78d0e59e475dce34b0833bbf8f84871b (diff)
downloadrust-8ef535e03d8f34c7ad7aab14eea6a73bf4445b4c.tar.gz
rust-8ef535e03d8f34c7ad7aab14eea6a73bf4445b4c.zip
Point out the type of more expressions on bad `?`
Diffstat (limited to 'tests/ui/try-trait/bad-question-mark-on-trait-object.rs')
-rw-r--r--tests/ui/try-trait/bad-question-mark-on-trait-object.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/ui/try-trait/bad-question-mark-on-trait-object.rs b/tests/ui/try-trait/bad-question-mark-on-trait-object.rs
index f319610cb3a..9efac78b3d7 100644
--- a/tests/ui/try-trait/bad-question-mark-on-trait-object.rs
+++ b/tests/ui/try-trait/bad-question-mark-on-trait-object.rs
@@ -7,6 +7,7 @@ fn foo() -> Result<(), Box<dyn std::error::Error>> { //~ NOTE required `E: std::
     //~| NOTE the trait `std::error::Error` is not implemented for `E`
     //~| NOTE the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
     //~| NOTE required for `Box<dyn std::error::Error>` to implement `From<E>`
+    //~| NOTE this has type `Result<_, E>`
     //~| NOTE in this expansion
     //~| NOTE in this expansion
     //~| NOTE in this expansion