diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/rfc-1937-termination-trait/termination-trait-not-satisfied.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/ui/rfc-1937-termination-trait/termination-trait-not-satisfied.rs b/src/test/ui/rfc-1937-termination-trait/termination-trait-not-satisfied.rs new file mode 100644 index 000000000..4c6168abb --- /dev/null +++ b/src/test/ui/rfc-1937-termination-trait/termination-trait-not-satisfied.rs @@ -0,0 +1,5 @@ +struct ReturnType {} + +fn main() -> ReturnType { //~ ERROR `main` has invalid return type `ReturnType` + ReturnType {} +} |