We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1ebce1 commit f2a4a3eCopy full SHA for f2a4a3e
tests/testsuite/diagnostics.rs
@@ -0,0 +1,23 @@
1
+use cargo_test_support::project;
2
+
3
+#[cargo_test]
4
+fn dont_panic_on_render() {
5
+ let p = project()
6
+ .file(
7
+ "Cargo.toml",
8
+ r#"
9
+[package]
10
+name = "foo"
11
+version = "0.1.0"
12
+edition = "2021"
13
+[[bench.foo]]
14
+"#,
15
+ )
16
+ .file("src/lib.rs", "")
17
+ .build();
18
19
+ p.cargo("check")
20
+ .with_status(101)
21
+ .with_stderr_contains("attempt to subtract with overflow")
22
+ .run();
23
+}
tests/testsuite/main.rs
@@ -79,6 +79,7 @@ mod cross_publish;
79
mod custom_target;
80
mod death;
81
mod dep_info;
82
+mod diagnostics;
83
mod direct_minimal_versions;
84
mod directory;
85
mod doc;
0 commit comments