diff options
| author | Ali MJ Al-Nasrawy <alimjalnasrawy@gmail.com> | 2024-03-19 20:58:37 +0000 |
|---|---|---|
| committer | Ali MJ Al-Nasrawy <alimjalnasrawy@gmail.com> | 2024-03-20 17:29:58 +0000 |
| commit | 19e0ea4a6d4266eeae6fc05c42b2e4ba78e19b6b (patch) | |
| tree | 2c3f3ac7f24e5e8ea2b62bcf479ac9f58846308f /tests/ui/nll/user-annotations | |
| parent | a7e4de13c1785819f4d61da41f6704ed69d5f203 (diff) | |
| download | rust-19e0ea4a6d4266eeae6fc05c42b2e4ba78e19b6b.tar.gz rust-19e0ea4a6d4266eeae6fc05c42b2e4ba78e19b6b.zip | |
make `type_flags(ReError) & HAS_ERROR`
Diffstat (limited to 'tests/ui/nll/user-annotations')
| -rw-r--r-- | tests/ui/nll/user-annotations/region-error-ice-109072.rs | 1 | ||||
| -rw-r--r-- | tests/ui/nll/user-annotations/region-error-ice-109072.stderr | 11 |
2 files changed, 10 insertions, 2 deletions
diff --git a/tests/ui/nll/user-annotations/region-error-ice-109072.rs b/tests/ui/nll/user-annotations/region-error-ice-109072.rs index 3f2ad3ccbf5..bcdc6651cf5 100644 --- a/tests/ui/nll/user-annotations/region-error-ice-109072.rs +++ b/tests/ui/nll/user-annotations/region-error-ice-109072.rs @@ -11,4 +11,5 @@ impl Lt<'missing> for () { //~ ERROR undeclared lifetime fn main() { let _: <() as Lt<'_>>::T = &(); + //~^ ERROR the trait bound `(): Lt<'_>` is not satisfied } diff --git a/tests/ui/nll/user-annotations/region-error-ice-109072.stderr b/tests/ui/nll/user-annotations/region-error-ice-109072.stderr index d90971bed25..c187c17d98c 100644 --- a/tests/ui/nll/user-annotations/region-error-ice-109072.stderr +++ b/tests/ui/nll/user-annotations/region-error-ice-109072.stderr @@ -21,6 +21,13 @@ help: consider introducing lifetime `'missing` here LL | impl<'missing> Lt<'missing> for () { | ++++++++++ -error: aborting due to 2 previous errors +error[E0277]: the trait bound `(): Lt<'_>` is not satisfied + --> $DIR/region-error-ice-109072.rs:13:13 + | +LL | let _: <() as Lt<'_>>::T = &(); + | ^^ the trait `Lt<'_>` is not implemented for `()` + +error: aborting due to 3 previous errors -For more information about this error, try `rustc --explain E0261`. +Some errors have detailed explanations: E0261, E0277. +For more information about an error, try `rustc --explain E0261`. |
