mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 20:46:07 +03:00
0bd9a2fafc
There is no need for every contracts test to assert the same warning for using the `contracts` feature flag, as such use `#![expect(incomplete_features)]` in the tests, and add one test to specifically check for the warning.
10 lines
245 B
Plaintext
10 lines
245 B
Plaintext
error[E0308]: mismatched types
|
|
--> $DIR/empty-requires.rs:9:1
|
|
|
|
|
LL | #[requires()]
|
|
| ^^^^^^^^^^^^^ expected `bool`, found `()`
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|