Add regression test for #52304
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
This commit is contained in:
parent
039a6ad1ca
commit
5249183480
11
src/test/ui/generator/issue-52304.rs
Normal file
11
src/test/ui/generator/issue-52304.rs
Normal file
@ -0,0 +1,11 @@
|
||||
// check-pass
|
||||
|
||||
#![feature(generators, generator_trait)]
|
||||
|
||||
use std::ops::Generator;
|
||||
|
||||
pub fn example() -> impl Generator {
|
||||
|| yield &1
|
||||
}
|
||||
|
||||
fn main() {}
|
Loading…
Reference in New Issue
Block a user