summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/type-not-found-in-adt-field.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/suggestions/type-not-found-in-adt-field.rs')
-rw-r--r--tests/ui/suggestions/type-not-found-in-adt-field.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/suggestions/type-not-found-in-adt-field.rs b/tests/ui/suggestions/type-not-found-in-adt-field.rs
new file mode 100644
index 000000000..4cbfe58d3
--- /dev/null
+++ b/tests/ui/suggestions/type-not-found-in-adt-field.rs
@@ -0,0 +1,9 @@
+struct Struct {
+ m: Vec<Someunknownname<String, ()>>, //~ ERROR cannot find type `Someunknownname` in this scope
+ //~^ NOTE not found in this scope
+}
+struct OtherStruct { //~ HELP you might be missing a type parameter
+ m: K, //~ ERROR cannot find type `K` in this scope
+ //~^ NOTE not found in this scope
+}
+fn main() {}