]> git.lizzy.rs Git - rust.git/blob - tests/ui/generator/yield-subtype.rs
Rollup merge of #106644 - alexcrichton:update-wasi-toolchain, r=cuviper
[rust.git] / tests / ui / generator / yield-subtype.rs
1 // run-pass
2 #![allow(dead_code)]
3 #![allow(dead_code)]
4
5 #![feature(generators)]
6
7 fn bar<'a>() {
8     let a: &'static str = "hi";
9     let b: &'a str = a;
10
11     || { //~ WARN unused generator that must be used
12         yield a;
13         yield b;
14     };
15 }
16
17 fn main() {}