]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/bogus-tag.stderr
improve unknown enum variant errors
[rust.git] / src / test / ui / bogus-tag.stderr
index 0bf0d4b14ee91c375168221afc602649705aa3df..890f6800c22af7bb03f08829f369060c6f5ecd73 100644 (file)
@@ -1,11 +1,11 @@
-error[E0599]: no variant named `Hsl` found for type `Color` in the current scope
+error[E0599]: no variant or associated item named `Hsl` found for type `Color` in the current scope
   --> $DIR/bogus-tag.rs:7:16
    |
 LL | enum Color { Rgb(isize, isize, isize), Rgba(isize, isize, isize, isize), }
-   | ---------- variant `Hsl` not found here
+   | ---------- variant or associated item `Hsl` not found here
 ...
 LL |         Color::Hsl(h, s, l) => { println!("hsl"); }
-   |                ^^^ variant not found in `Color`
+   |                ^^^ variant or associated item not found in `Color`
 
 error: aborting due to previous error