Debian Codegraph @

third_party/rust/zerocopy-derive/tests/trybuild.rs

raw
1 // Copyright 2019 The Fuchsia Authors
2 //
3 // Licensed under a BSD-style license <LICENSE-BSD>, Apache License, Version 2.0
4 // <LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0>, or the MIT
5 // license <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your option.
6 // This file may not be copied, modified, or distributed except according to
7 // those terms.
8
9 #[test]
10 #[cfg_attr(miri, ignore)]
11 fn ui() {
12 let version = testutil::ToolchainVersion::extract_from_pwd().unwrap();
13 // See the doc comment on this method for an explanation of what this does
14 // and why we store source files in different directories.
15 let source_files_dirname = version.get_ui_source_files_dirname_and_maybe_print_warning();
16
17 let t = trybuild::TestCases::new();
18 t.compile_fail(format!("tests/{source_files_dirname}/*.rs"));
19 }