aboutsummaryrefslogtreecommitdiff
path: root/src/test/compile-fail/bad-type-env-capture.rs
blob: 00f314dd154f30c1b6f3dcb143107b661250f6d0 (plain) (blame)
1
2
3
4
5
6
// xfail-stage0
// xfail-stage1
// xfail-stage2
// error-pattern: attempted dynamic environment-capture
fn foo[T]() { obj bar(T b) {} }
fn main() {}