Registry / testing / trybuild

trybuild

JSON →
library1.0.116rscratesunverified

Test harness for ui tests of compiler diagnostics.

# Cargo.toml [dependencies] trybuild = "1.0.116"
INSTALL
IMPORT
SIG · TRYBUILD
T
trybuild
testingrustv1.0.116
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

TestCases
use trybuild::TestCases;

Run compile-fail UI tests matching a glob pattern.

use trybuild::TestCases; #[test] fn ui() { let t = TestCases::new(); t.compile_fail("tests/ui/*.rs"); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.116latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
10
Resources
trybuild — cargo add trybuild · libregistry