Skip to content
Myr

Add ui test of missing format argument in interpolation

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Tolnay · committed by David Tolnay · parent 8546f4c · Browse files · 2 files+10 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+10 added−0 removed

  • tests:+10 added−0 removed

2 files+10 added−0 removed

added:tests/ui/wrong-interpolation.rs+5 added
1use anyhow::{bail, Result};23fn main() -> Result<()> {4 bail!("{} not found");5}
added:tests/ui/wrong-interpolation.stderr+5 added
1error: 1 positional argument in format string, but no arguments were given2 --> tests/ui/wrong-interpolation.rs:4:123 |44 | bail!("{} not found");5 | ^^