]>
git.proxmox.com Git - rustc.git/blob - vendor/structopt/examples/deny_missing_docs.rs
1 // Copyright 2018 Guillaume Pinot (@TeXitoi) <texitoi@texitoi.eu>
3 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
4 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
5 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
6 // option. This file may not be copied, modified, or distributed
7 // except according to those terms.
9 // This should be in tests but it will not work until
10 // https://github.com/rust-lang/rust/issues/24584 is fixed
12 //! A test to check that structopt compiles with deny(missing_docs)
14 #![deny(missing_docs)]
16 use structopt
::StructOpt
;
19 #[derive(StructOpt, Debug, PartialEq)]
23 #[structopt(subcommand)]
28 #[derive(StructOpt, Debug, PartialEq)]
43 #[derive(StructOpt, Debug, PartialEq)]
50 println
!("{:?}", Opt
::from_args());