mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-28 11:20:36 +00:00

While this is noisy and hides other deprecations, I figured deprecations would make it easier for people to discover what tasks remain and allow us to divide and conquer this work rather than doing a heroic PR. In theory, this will be short lived and we'll go back to seeing deprecations in our tests.
35 lines
534 B
Rust
35 lines
534 B
Rust
#![allow(deprecated)]
|
|
|
|
use cargo_test_support::project;
|
|
|
|
#[cargo_test]
|
|
fn dont_panic_on_render() {
|
|
let p = project()
|
|
.file(
|
|
"Cargo.toml",
|
|
r#"
|
|
[package]
|
|
name = "foo"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
[[bench.foo]]
|
|
"#,
|
|
)
|
|
.file("src/lib.rs", "")
|
|
.build();
|
|
|
|
p.cargo("check")
|
|
.with_status(101)
|
|
.with_stderr(
|
|
"\
|
|
error: invalid type: map, expected a sequence
|
|
--> Cargo.toml:6:3
|
|
|
|
|
6 | [[bench.foo]]
|
|
| ^^^^^
|
|
|
|
|
",
|
|
)
|
|
.run();
|
|
}
|