mirror of
https://github.com/rwf2/Rocket.git
synced 2025-01-09 03:02:45 +00:00
793f421712
The 'FromFrom' derive now allows type generics in all positions using the same automatic discovery technique as with 'Responder'. (In fact, the technique was created for this derive.) Furthermore, 'FromForm' can now be derived for unit structs. Also adds a new 'try_with' form field validator. Resolves #1695.
15 lines
383 B
Rust
15 lines
383 B
Rust
#[test]
|
|
fn ui() {
|
|
let path = match version_check::is_feature_flaggable() {
|
|
Some(true) => "ui-fail-nightly",
|
|
_ => "ui-fail-stable"
|
|
};
|
|
|
|
let glob = std::env::args().last()
|
|
.map(|arg| format!("*{}*.rs", arg))
|
|
.unwrap_or_else(|| "*.rs".into());
|
|
|
|
let t = trybuild::TestCases::new();
|
|
t.compile_fail(format!("tests/{}/{}", path, glob));
|
|
}
|