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
4aa165553bfb2a74e2e54f08fd9507e23bc24708
rust/src/test/compile-fail/and-init.rs

8 lines
151 B
Rust
Raw Normal View History

Handle lazy binops properly in typestate The typestate analysis now reflects that the second operand of a logical and or or may not be evaluated.
2011-06-28 13:07:05 -07:00
// error-pattern: Unsatisfied precondition constraint (for example, init(i
fn main() {
Reformat for new syntax
2011-07-27 14:19:39 +02:00
let i: int;
Handle lazy binops properly in typestate The typestate analysis now reflects that the second operand of a logical and or or may not be evaluated.
2011-06-28 13:07:05 -07:00
Reformat for new syntax
2011-07-27 14:19:39 +02:00
log false && { i = 5; true };
log i;
Handle lazy binops properly in typestate The typestate analysis now reflects that the second operand of a logical and or or may not be evaluated.
2011-06-28 13:07:05 -07:00
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 228ms 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