diff options
Diffstat (limited to 'tests/ui/typeck/nonexistent-field-not-ambiguous.rs')
-rw-r--r-- | tests/ui/typeck/nonexistent-field-not-ambiguous.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/typeck/nonexistent-field-not-ambiguous.rs b/tests/ui/typeck/nonexistent-field-not-ambiguous.rs new file mode 100644 index 000000000..1cd192b78 --- /dev/null +++ b/tests/ui/typeck/nonexistent-field-not-ambiguous.rs @@ -0,0 +1,8 @@ +struct Foo { + val: MissingType, + //~^ ERROR cannot find type `MissingType` in this scope +} + +fn main() { + Foo { val: Default::default() }; +} |