diff options
Diffstat (limited to 'src/test/ui/save-analysis/issue-68621.rs')
-rw-r--r-- | src/test/ui/save-analysis/issue-68621.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/test/ui/save-analysis/issue-68621.rs b/src/test/ui/save-analysis/issue-68621.rs new file mode 100644 index 000000000..30479580f --- /dev/null +++ b/src/test/ui/save-analysis/issue-68621.rs @@ -0,0 +1,17 @@ +// compile-flags: -Zsave-analysis + +#![feature(type_alias_impl_trait)] + +trait Trait {} + +trait Service { + type Future: Trait; +} + +struct Struct; + +impl Service for Struct { + type Future = impl Trait; //~ ERROR: unconstrained opaque type +} + +fn main() {} |