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

11 lines
115 B
Rust
Raw Normal View History

Add test for unreachable well-formedness. This commit adds a test for checking that types are well-formed when unreachable.
2018-11-23 11:55:09 +01:00
fn foo<T: 'static>() { }
Stop well-formedness checking unreachable code. This commit stops well-formedness checking applying to unreachable code and therefore stops some of the ICEs that the intended solution taken by this PR causes. By disabling these checks, we can land the other fixes and larger refactors that this PR includes.
2018-12-18 21:27:22 +01:00
fn boo<'a>() {
Add test for unreachable well-formedness. This commit adds a test for checking that types are well-formed when unreachable.
2018-11-23 11:55:09 +01:00
return;
let x = foo::<&'a u32>();
Remove feature(nll) when compare mode is sufficient
2019-04-07 16:07:36 +01:00
//~^ ERROR
Add test for unreachable well-formedness. This commit adds a test for checking that types are well-formed when unreachable.
2018-11-23 11:55:09 +01:00
}
Stop well-formedness checking unreachable code. This commit stops well-formedness checking applying to unreachable code and therefore stops some of the ICEs that the intended solution taken by this PR causes. By disabling these checks, we can land the other fixes and larger refactors that this PR includes.
2018-12-18 21:27:22 +01:00
fn main() {}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 3762ms Template: 2ms
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