Add test for issue-58951
This commit is contained in:
parent
f690098e6d
commit
bca1c3cfae
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 @@
|
||||
// run-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…
Reference in New Issue
Block a user