parent
ac83e34dc6
commit
3ca5fff195
4 changed files with 24 additions and 5 deletions
5
src/test/compile-fail/extenv-no-args.rs
Normal file
5
src/test/compile-fail/extenv-no-args.rs
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
// error-pattern:malformed #env call
|
||||
|
||||
fn main() {
|
||||
#env();
|
||||
}
|
||||
5
src/test/compile-fail/extenv-not-string-literal.rs
Normal file
5
src/test/compile-fail/extenv-not-string-literal.rs
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
// error-pattern:malformed #env call
|
||||
|
||||
fn main() {
|
||||
#env(10);
|
||||
}
|
||||
5
src/test/compile-fail/extenv-too-many-args.rs
Normal file
5
src/test/compile-fail/extenv-too-many-args.rs
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
// error-pattern:malformed #env call
|
||||
|
||||
fn main() {
|
||||
#env("one", "two");
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue