Rollup merge of #63158 - JohnTitor:add-test-for-58951, r=Centril
Add test for issue-58951 Closes #58951 r? @Centril
This commit is contained in:
commit
aaec6dfa47
1 changed files with 10 additions and 0 deletions
10
src/test/ui/existential_types/issue-58951.rs
Normal file
10
src/test/ui/existential_types/issue-58951.rs
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
// check-pass
|
||||
#![feature(existential_type)]
|
||||
|
||||
existential type A: Iterator;
|
||||
fn def_a() -> A { 0..1 }
|
||||
pub fn use_a() {
|
||||
def_a().map(|x| x);
|
||||
}
|
||||
|
||||
fn main() {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue