Skip to content
Myr

Merge pull request #181 from dtolnay/fmt

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

Add ui test of missing format argument in interpolation

authored by David Tolnay · committed by GitHub · parents 8546f4c, 4974ce8 · 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 | ^^