diff options
| author | Zack M. Davis <code@zackmdavis.net> | 2017-10-01 16:44:33 -0700 |
|---|---|---|
| committer | Zack M. Davis <code@zackmdavis.net> | 2017-10-01 17:20:06 -0700 |
| commit | b989101a558f0c2963a6a42b068c81f8b4606988 (patch) | |
| tree | 6b49bb6c8d86d49df982f74ab7ba04518948413f /src/test/compile-fail | |
| parent | f1b5225e8b67adab52dda2b5ed5c8b805b716a6d (diff) | |
| download | rust-b989101a558f0c2963a6a42b068c81f8b4606988.tar.gz rust-b989101a558f0c2963a6a42b068c81f8b4606988.zip | |
make non_snake_case lint allow extern no-mangle functions
Resolves #31924.
Diffstat (limited to 'src/test/compile-fail')
| -rw-r--r-- | src/test/compile-fail/issue-31924-non-snake-ffi.rs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/test/compile-fail/issue-31924-non-snake-ffi.rs b/src/test/compile-fail/issue-31924-non-snake-ffi.rs new file mode 100644 index 00000000000..d9ce1159c0e --- /dev/null +++ b/src/test/compile-fail/issue-31924-non-snake-ffi.rs @@ -0,0 +1,18 @@ +// Copyright 2017 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or +// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license +// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +#![feature(rustc_attrs)] +#![deny(non_snake_case)] + +#[no_mangle] +pub extern "C" fn SparklingGenerationForeignFunctionInterface() {} + +#[rustc_error] +fn main() {} //~ ERROR compilation successful |
