]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/associated-type-bounds/inside-adt.rs
Provide a span if main function is not present in crate
[rust.git] / src / test / ui / associated-type-bounds / inside-adt.rs
index 83a60825d84cdcabcaa2177f29f6001e319966b9..59ce9496d28f0bd340141ebb819ca478b5e42adf 100644 (file)
@@ -31,3 +31,5 @@ union U2 { f: Box<dyn Iterator<Item: Copy>> }
 union U3 { f: dyn Iterator<Item: 'static> }
 //~^ ERROR associated type bounds are not allowed within structs, enums, or unions
 //~| ERROR could not find defining uses
+
+fn main() {}