mirror of
https://github.com/clap-rs/clap
synced 2024-12-13 06:12:40 +00:00
e0e7383300
`derive_ui.rs` did not have a marker for needing to be updated on MSRV changes, so it got missed.
18 lines
724 B
Rust
18 lines
724 B
Rust
// Copyright 2018 Guillaume Pinot (@TeXitoi) <texitoi@texitoi.eu>
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
|
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
|
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
|
// option. This file may not be copied, modified, or distributed
|
|
|
|
#[cfg(feature = "derive")]
|
|
#[rustversion::attr(any(not(stable), before(1.56), since(1.57)), ignore)] // MSRV
|
|
#[test]
|
|
fn ui() {
|
|
let t = trybuild::TestCases::new();
|
|
t.compile_fail("tests/derive_ui/*.rs");
|
|
#[cfg(feature = "unstable-v4")]
|
|
t.compile_fail("tests/derive_ui/next/*.rs");
|
|
#[cfg(not(feature = "unstable-v4"))]
|
|
t.compile_fail("tests/derive_ui/stable/*.rs");
|
|
}
|