Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 2 Packages Projects Releases Wiki Activity
Files
51b51b51d7931da85280382a81c4dd80c73ca754
rust/tests/ui/nll/issue-40510-3.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
218 B
Rust
Raw Normal View History

Add regression test for #40510
2017-08-02 03:44:11 +02:00
#![allow(unused)]
fn f() {
Add more regression tests for #40510
2017-08-03 04:14:16 +02:00
let mut x: Vec<()> = Vec::new();
Add regression test for #40510
2017-08-02 03:44:11 +02:00
|| {
Add more regression tests for #40510
2017-08-03 04:14:16 +02:00
|| {
x.push(())
}
Adjust & --bless tests due to no longer downgrading NLL errors on 2015.
2019-09-06 15:47:50 +02:00
//~^^^ ERROR captured variable cannot escape `FnMut` closure body
Add regression test for #40510
2017-08-02 03:44:11 +02:00
};
}
Removed `#[rustc_error]` from tests that are all `// compile-pass`. I also added `// skip-codegen` to each one, to address potential concerns that this change would otherwise slow down our test suite spending time generating code for files that are really just meant to be checks of compiler diagnostics. (However, I will say: My preference is to not use `// skip-codegen` if one can avoid it. We can use all the testing of how we drive LLVM that we can get...) (Updated post rebase.)
2018-10-31 13:08:01 +01:00
fn main() {}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 5110ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API