diff options
| author | Dan Aloni <alonid@gmail.com> | 2021-01-28 18:01:36 +0200 |
|---|---|---|
| committer | Dan Aloni <alonid@gmail.com> | 2021-02-06 12:03:48 +0200 |
| commit | eaefe4a230d7c32d7c99da437ee8b87860f28704 (patch) | |
| tree | 72e1de33df6a231b3fe25c1aca7c137fa4a0d1fc /src/test/ui/recursion | |
| parent | cfba499271ba53190a1d3647ff8f7202ec9ed6f5 (diff) | |
| download | rust-eaefe4a230d7c32d7c99da437ee8b87860f28704.tar.gz rust-eaefe4a230d7c32d7c99da437ee8b87860f28704.zip | |
path trimming: ignore type aliases
Diffstat (limited to 'src/test/ui/recursion')
| -rw-r--r-- | src/test/ui/recursion/recursive-types-are-not-uninhabited.stderr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/ui/recursion/recursive-types-are-not-uninhabited.stderr b/src/test/ui/recursion/recursive-types-are-not-uninhabited.stderr index c6f500ec8cc..dfb69a3cc1b 100644 --- a/src/test/ui/recursion/recursive-types-are-not-uninhabited.stderr +++ b/src/test/ui/recursion/recursive-types-are-not-uninhabited.stderr @@ -11,7 +11,7 @@ LL | Err(#[stable(feature = "rust1", since = "1.0.0")] E), | = note: `let` bindings require an "irrefutable pattern", like a `struct` or an `enum` with only one variant = note: for more information, visit https://doc.rust-lang.org/book/ch18-02-refutability.html - = note: the matched value is of type `std::result::Result<u32, &R>` + = note: the matched value is of type `Result<u32, &R>` help: you might want to use `if let` to ignore the variant that isn't matched | LL | if let Ok(x) = res { /* */ } |
