summaryrefslogtreecommitdiffstats
path: root/tests/ui/generator/yield-in-const.rs
blob: fe5ca822ceca1ce39e09cb24b9b9a24aa3e34817 (plain)
1
2
3
4
5
6
#![feature(generators)]

const A: u8 = { yield 3u8; 3u8};
//~^ ERROR yield expression outside

fn main() {}