diff options
Diffstat (limited to '')
-rw-r--r-- | tests/ui/impl-trait/reveal-during-codegen.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/impl-trait/reveal-during-codegen.rs b/tests/ui/impl-trait/reveal-during-codegen.rs new file mode 100644 index 000000000..11463772e --- /dev/null +++ b/tests/ui/impl-trait/reveal-during-codegen.rs @@ -0,0 +1,11 @@ +// build-pass +// revisions: current next +//[next] compile-flags: -Ztrait-solver=next + +fn test() -> Option<impl Sized> { + Some("") +} + +fn main() { + test(); +} |