Move /src/test to /tests
This commit is contained in:
parent
ca855e6e42
commit
cf2dff2b1e
27592 changed files with 0 additions and 0 deletions
17
tests/ui/lint/warn-path-statement.rs
Normal file
17
tests/ui/lint/warn-path-statement.rs
Normal file
|
@ -0,0 +1,17 @@
|
|||
// compile-flags: -D path-statements
|
||||
struct Droppy;
|
||||
|
||||
impl Drop for Droppy {
|
||||
fn drop(&mut self) {}
|
||||
}
|
||||
|
||||
fn main() {
|
||||
let x = 10;
|
||||
x; //~ ERROR path statement with no effect
|
||||
|
||||
let y = Droppy;
|
||||
y; //~ ERROR path statement drops value
|
||||
|
||||
let z = (Droppy,);
|
||||
z; //~ ERROR path statement drops value
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue