PageRenderTime 5ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 2ms app.codeStats 0ms

/src/test/compile-fail/bad-type-env-capture.rs

http://github.com/jruderman/rust
Rust | 6 lines | 4 code | 0 blank | 2 comment | 0 complexity | 75cca28bdaa5ff8fd471102b204898b2 MD5 | raw file
1// xfail-test
2// error-pattern: attempted dynamic environment-capture
3fn foo<T>() {
4    fn bar(b: T) { }
5}
6fn main() { }