diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2017-06-11 19:48:46 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2017-06-12 01:47:01 +0200 |
| commit | 2f3789474042e16f0fb35d1a03d1acfce151774e (patch) | |
| tree | bc12b6e368de520b8c3bfcb7ea28e624d1c48ea8 /src/test/compile-fail/attempted-access-non-fatal.rs | |
| parent | f4dd365bbb362a0aab0beaa31db73bf55d6a0481 (diff) | |
| download | rust-2f3789474042e16f0fb35d1a03d1acfce151774e.tar.gz rust-2f3789474042e16f0fb35d1a03d1acfce151774e.zip | |
Add E0610
Diffstat (limited to 'src/test/compile-fail/attempted-access-non-fatal.rs')
| -rw-r--r-- | src/test/compile-fail/attempted-access-non-fatal.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/compile-fail/attempted-access-non-fatal.rs b/src/test/compile-fail/attempted-access-non-fatal.rs index fe8e793ed78..3d6c46f5ce3 100644 --- a/src/test/compile-fail/attempted-access-non-fatal.rs +++ b/src/test/compile-fail/attempted-access-non-fatal.rs @@ -11,6 +11,6 @@ // Check that bogus field access is non-fatal fn main() { let x = 0; - let _ = x.foo; //~ no field `foo` on type `{integer}` - let _ = x.bar; //~ no field `bar` on type `{integer}` + let _ = x.foo; //~ `{integer}` is a primitive type and therefore doesn't have fields [E0610] + let _ = x.bar; //~ `{integer}` is a primitive type and therefore doesn't have fields [E0610] } |
