aboutsummaryrefslogtreecommitdiff
path: root/structopt/tests/ui
diff options
context:
space:
mode:
Diffstat (limited to 'structopt/tests/ui')
-rw-r--r--structopt/tests/ui/bool_default_value.rs21
-rw-r--r--structopt/tests/ui/bool_default_value.stderr5
-rw-r--r--structopt/tests/ui/bool_required.rs21
-rw-r--r--structopt/tests/ui/bool_required.stderr5
-rw-r--r--structopt/tests/ui/flatten_and_doc.rs30
-rw-r--r--structopt/tests/ui/flatten_and_doc.stderr5
-rw-r--r--structopt/tests/ui/flatten_and_methods.rs29
-rw-r--r--structopt/tests/ui/flatten_and_methods.stderr5
-rw-r--r--structopt/tests/ui/flatten_and_parse.rs29
-rw-r--r--structopt/tests/ui/flatten_and_parse.stderr5
-rw-r--r--structopt/tests/ui/non_existent_attr.rs21
-rw-r--r--structopt/tests/ui/non_existent_attr.stderr5
-rw-r--r--structopt/tests/ui/opt_opt_nonpositional.rs20
-rw-r--r--structopt/tests/ui/opt_opt_nonpositional.stderr5
-rw-r--r--structopt/tests/ui/opt_vec_nonpositional.rs20
-rw-r--r--structopt/tests/ui/opt_vec_nonpositional.stderr5
-rw-r--r--structopt/tests/ui/option_default_value.rs21
-rw-r--r--structopt/tests/ui/option_default_value.stderr5
-rw-r--r--structopt/tests/ui/option_required.rs21
-rw-r--r--structopt/tests/ui/option_required.stderr5
-rw-r--r--structopt/tests/ui/parse_empty_try_from_os.rs21
-rw-r--r--structopt/tests/ui/parse_empty_try_from_os.stderr5
-rw-r--r--structopt/tests/ui/parse_function_is_not_path.rs21
-rw-r--r--structopt/tests/ui/parse_function_is_not_path.stderr5
-rw-r--r--structopt/tests/ui/parse_literal_spec.rs21
-rw-r--r--structopt/tests/ui/parse_literal_spec.stderr5
-rw-r--r--structopt/tests/ui/parse_not_zero_args.rs21
-rw-r--r--structopt/tests/ui/parse_not_zero_args.stderr5
-rw-r--r--structopt/tests/ui/positional_bool.rs10
-rw-r--r--structopt/tests/ui/positional_bool.stderr10
-rw-r--r--structopt/tests/ui/raw.rs25
-rw-r--r--structopt/tests/ui/raw.stderr19
-rw-r--r--structopt/tests/ui/rename_all_wrong_casing.rs21
-rw-r--r--structopt/tests/ui/rename_all_wrong_casing.stderr5
-rw-r--r--structopt/tests/ui/skip_flatten.rs42
-rw-r--r--structopt/tests/ui/skip_flatten.stderr5
-rw-r--r--structopt/tests/ui/skip_subcommand.rs42
-rw-r--r--structopt/tests/ui/skip_subcommand.stderr5
-rw-r--r--structopt/tests/ui/skip_with_other_options.rs15
-rw-r--r--structopt/tests/ui/skip_with_other_options.stderr5
-rw-r--r--structopt/tests/ui/skip_without_default.rs29
-rw-r--r--structopt/tests/ui/skip_without_default.stderr9
-rw-r--r--structopt/tests/ui/struct_flatten.rs21
-rw-r--r--structopt/tests/ui/struct_flatten.stderr5
-rw-r--r--structopt/tests/ui/struct_parse.rs21
-rw-r--r--structopt/tests/ui/struct_parse.stderr5
-rw-r--r--structopt/tests/ui/struct_subcommand.rs21
-rw-r--r--structopt/tests/ui/struct_subcommand.stderr5
-rw-r--r--structopt/tests/ui/structopt_empty_attr.rs22
-rw-r--r--structopt/tests/ui/structopt_empty_attr.stderr5
-rw-r--r--structopt/tests/ui/structopt_name_value_attr.rs22
-rw-r--r--structopt/tests/ui/structopt_name_value_attr.stderr5
-rw-r--r--structopt/tests/ui/subcommand_and_flatten.rs36
-rw-r--r--structopt/tests/ui/subcommand_and_flatten.stderr5
-rw-r--r--structopt/tests/ui/subcommand_and_methods.rs36
-rw-r--r--structopt/tests/ui/subcommand_and_methods.stderr5
-rw-r--r--structopt/tests/ui/subcommand_and_parse.rs36
-rw-r--r--structopt/tests/ui/subcommand_and_parse.stderr5
-rw-r--r--structopt/tests/ui/subcommand_opt_opt.rs36
-rw-r--r--structopt/tests/ui/subcommand_opt_opt.stderr5
-rw-r--r--structopt/tests/ui/subcommand_opt_vec.rs36
-rw-r--r--structopt/tests/ui/subcommand_opt_vec.stderr5
-rw-r--r--structopt/tests/ui/tuple_struct.rs18
-rw-r--r--structopt/tests/ui/tuple_struct.stderr5
64 files changed, 0 insertions, 989 deletions
diff --git a/structopt/tests/ui/bool_default_value.rs b/structopt/tests/ui/bool_default_value.rs
deleted file mode 100644
index 9bdb0c9..0000000
--- a/structopt/tests/ui/bool_default_value.rs
+++ /dev/null
@@ -1,21 +0,0 @@
-// 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
-// except according to those terms.
-
-use structopt::StructOpt;
-
-#[derive(StructOpt, Debug)]
-#[structopt(name = "basic")]
-struct Opt {
- #[structopt(short, default_value = true)]
- b: bool,
-}
-
-fn main() {
- let opt = Opt::from_args();
- println!("{:?}", opt);
-}
diff --git a/structopt/tests/ui/bool_default_value.stderr b/structopt/tests/ui/bool_default_value.stderr
deleted file mode 100644
index 1e26a2d..0000000
--- a/structopt/tests/ui/bool_default_value.stderr
+++ /dev/null
@@ -1,5 +0,0 @@
-error: default_value is meaningless for bool
- --> $DIR/bool_default_value.rs:14:24
- |
-14 | #[structopt(short, default_value = true)]
- | ^^^^^^^^^^^^^
diff --git a/structopt/tests/ui/bool_required.rs b/structopt/tests/ui/bool_required.rs
deleted file mode 100644
index 018223c..0000000
--- a/structopt/tests/ui/bool_required.rs
+++ /dev/null
@@ -1,21 +0,0 @@
-// 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
-// except according to those terms.
-
-use structopt::StructOpt;
-
-#[derive(StructOpt, Debug)]
-#[structopt(name = "basic")]
-struct Opt {
- #[structopt(short, required = true)]
- b: bool,
-}
-
-fn main() {
- let opt = Opt::from_args();
- println!("{:?}", opt);
-}
diff --git a/structopt/tests/ui/bool_required.stderr b/structopt/tests/ui/bool_required.stderr
deleted file mode 100644
index 0b80d48..0000000
--- a/structopt/tests/ui/bool_required.stderr
+++ /dev/null
@@ -1,5 +0,0 @@
-error: required is meaningless for bool
- --> $DIR/bool_required.rs:14:24
- |
-14 | #[structopt(short, required = true)]
- | ^^^^^^^^
diff --git a/structopt/tests/ui/flatten_and_doc.rs b/structopt/tests/ui/flatten_and_doc.rs
deleted file mode 100644
index 2dc154d..0000000
--- a/structopt/tests/ui/flatten_and_doc.rs
+++ /dev/null
@@ -1,30 +0,0 @@
-// 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
-// except according to those terms.
-
-use structopt::StructOpt;
-
-#[derive(StructOpt, Debug)]
-struct DaemonOpts {
- #[structopt(short)]
- user: String,
- #[structopt(short)]
- group: String,
-}
-
-#[derive(StructOpt, Debug)]
-#[structopt(name = "basic")]
-struct Opt {
- /// Opts.
- #[structopt(flatten)]
- opts: DaemonOpts,
-}
-
-fn main() {
- let opt = Opt::from_args();
- println!("{:?}", opt);
-}
diff --git a/structopt/tests/ui/flatten_and_doc.stderr b/structopt/tests/ui/flatten_and_doc.stderr
deleted file mode 100644
index 2724dbb..0000000
--- a/structopt/tests/ui/flatten_and_doc.stderr
+++ /dev/null
@@ -1,5 +0,0 @@
-error: methods and doc comments are not allowed for flattened entry
- --> $DIR/flatten_and_doc.rs:23:17
- |
-23 | #[structopt(flatten)]
- | ^^^^^^^
diff --git a/structopt/tests/ui/flatten_and_methods.rs b/structopt/tests/ui/flatten_and_methods.rs
deleted file mode 100644
index ff1af2e..0000000
--- a/structopt/tests/ui/flatten_and_methods.rs
+++ /dev/null
@@ -1,29 +0,0 @@
-// 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
-// except according to those terms.
-
-use structopt::StructOpt;
-
-#[derive(StructOpt, Debug)]
-struct DaemonOpts {
- #[structopt(short)]
- user: String,
- #[structopt(short)]
- group: String,
-}
-
-#[derive(StructOpt, Debug)]
-#[structopt(name = "basic")]
-struct Opt {
- #[structopt(short, flatten)]
- opts: DaemonOpts,
-}
-
-fn main() {
- let opt = Opt::from_args();
- println!("{:?}", opt);
-}
diff --git a/structopt/tests/ui/flatten_and_methods.stderr b/structopt/tests/ui/flatten_and_methods.stderr
deleted file mode 100644
index f058eb3..0000000
--- a/structopt/tests/ui/flatten_and_methods.stderr
+++ /dev/null
@@ -1,5 +0,0 @@
-error: methods and doc comments are not allowed for flattened entry
- --> $DIR/flatten_and_methods.rs:22:24
- |
-22 | #[structopt(short, flatten)]
- | ^^^^^^^
diff --git a/structopt/tests/ui/flatten_and_parse.rs b/structopt/tests/ui/flatten_and_parse.rs
deleted file mode 100644
index 3317272..0000000
--- a/structopt/tests/ui/flatten_and_parse.rs
+++ /dev/null
@@ -1,29 +0,0 @@
-// 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
-// except according to those terms.
-
-use structopt::StructOpt;
-
-#[derive(StructOpt, Debug)]
-struct DaemonOpts {
- #[structopt(short)]
- user: String,
- #[structopt(short)]
- group: String,
-}
-
-#[derive(StructOpt, Debug)]
-#[structopt(name = "basic")]
-struct Opt {
- #[structopt(flatten, parse(from_occurrences))]
- opts: DaemonOpts,
-}
-
-fn main() {
- let opt = Opt::from_args();
- println!("{:?}", opt);
-}
diff --git a/structopt/tests/ui/flatten_and_parse.stderr b/structopt/tests/ui/flatten_and_parse.stderr
deleted file mode 100644
index e217a84..0000000
--- a/structopt/tests/ui/flatten_and_parse.stderr
+++ /dev/null
@@ -1,5 +0,0 @@
-error: parse attribute is not allowed for flattened entry
- --> $DIR/flatten_and_parse.rs:22:26
- |
-22 | #[structopt(flatten, parse(from_occurrences))]
- | ^^^^^
diff --git a/structopt/tests/ui/non_existent_attr.rs b/structopt/tests/ui/non_existent_attr.rs
deleted file mode 100644
index 96daf45..0000000
--- a/structopt/tests/ui/non_existent_attr.rs
+++ /dev/null
@@ -1,21 +0,0 @@
-// 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
-// except according to those terms.
-
-use structopt::StructOpt;
-
-#[derive(StructOpt, Debug)]
-#[structopt(name = "basic")]
-struct Opt {
- #[structopt(short, non_existing_attribute = 1)]
- debug: bool,
-}
-
-fn main() {
- let opt = Opt::from_args();
- println!("{:?}", opt);
-}
diff --git a/structopt/tests/ui/non_existent_attr.stderr b/structopt/tests/ui/non_existent_attr.stderr
deleted file mode 100644
index 17bb87f..0000000
--- a/structopt/tests/ui/non_existent_attr.stderr
+++ /dev/null
@@ -1,5 +0,0 @@
-error[E0599]: no method named `non_existing_attribute` found for type `clap::args::arg::Arg<'_, '_>` in the current scope
- --> $DIR/non_existent_attr.rs:14:24
- |
-14 | #[structopt(short, non_existing_attribute = 1)]
- | ^^^^^^^^^^^^^^^^^^^^^^ method not found in `clap::args::arg::Arg<'_, '_>`
diff --git a/structopt/tests/ui/opt_opt_nonpositional.rs b/structopt/tests/ui/opt_opt_nonpositional.rs
deleted file mode 100644
index 2a08105..0000000
--- a/structopt/tests/ui/opt_opt_nonpositional.rs
+++ /dev/null
@@ -1,20 +0,0 @@
-// 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
-// except according to those terms.
-
-use structopt::StructOpt;
-
-#[derive(StructOpt, Debug)]
-#[structopt(name = "basic")]
-struct Opt {
- n: Option<Option<u32>>,
-}
-
-fn main() {
- let opt = Opt::from_args();
- println!("{:?}", opt);
-}
diff --git a/structopt/tests/ui/opt_opt_nonpositional.stderr b/structopt/tests/ui/opt_opt_nonpositional.stderr
deleted file mode 100644
index 586bf7a..0000000
--- a/structopt/tests/ui/opt_opt_nonpositional.stderr
+++ /dev/null
@@ -1,5 +0,0 @@
-error: Option<Option<T>> type is meaningless for positional argument
- --> $DIR/opt_opt_nonpositional.rs:14:8
- |
-14 | n: Option<Option<u32>>,
- | ^^^^^^
diff --git a/structopt/tests/ui/opt_vec_nonpositional.rs b/structopt/tests/ui/opt_vec_nonpositional.rs
deleted file mode 100644
index 0f6f078..0000000
--- a/structopt/tests/ui/opt_vec_nonpositional.rs
+++ /dev/null
@@ -1,20 +0,0 @@
-// 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
-// except according to those terms.
-
-use structopt::StructOpt;
-
-#[derive(StructOpt, Debug)]
-#[structopt(name = "basic")]
-struct Opt {
- n: Option<Vec<u32>>,
-}
-
-fn main() {
- let opt = Opt::from_args();
- println!("{:?}", opt);
-}
diff --git a/structopt/tests/ui/opt_vec_nonpositional.stderr b/structopt/tests/ui/opt_vec_nonpositional.stderr
deleted file mode 100644
index 6f01de5..0000000
--- a/structopt/tests/ui/opt_vec_nonpositional.stderr
+++ /dev/null
@@ -1,5 +0,0 @@
-error: Option<Vec<T>> type is meaningless for positional argument
- --> $DIR/opt_vec_nonpositional.rs:14:8
- |
-14 | n: Option<Vec<u32>>,
- | ^^^^^^
diff --git a/structopt/tests/ui/option_default_value.rs b/structopt/tests/ui/option_default_value.rs
deleted file mode 100644
index a86bc0e..0000000
--- a/structopt/tests/ui/option_default_value.rs
+++ /dev/null
@@ -1,21 +0,0 @@
-// 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
-// except according to those terms.
-
-use structopt::StructOpt;
-
-#[derive(StructOpt, Debug)]
-#[structopt(name = "basic")]
-struct Opt {
- #[structopt(short, default_value = 1)]
- n: Option<u32>,
-}
-
-fn main() {
- let opt = Opt::from_args();
- println!("{:?}", opt);
-}
diff --git a/structopt/tests/ui/option_default_value.stderr b/structopt/tests/ui/option_default_value.stderr
deleted file mode 100644
index 2215497..0000000
--- a/structopt/tests/ui/option_default_value.stderr
+++ /dev/null
@@ -1,5 +0,0 @@
-error: default_value is meaningless for Option
- --> $DIR/option_default_value.rs:14:24
- |
-14 | #[structopt(short, default_value = 1)]
- | ^^^^^^^^^^^^^
diff --git a/structopt/tests/ui/option_required.rs b/structopt/tests/ui/option_required.rs
deleted file mode 100644
index d91afbf..0000000
--- a/structopt/tests/ui/option_required.rs
+++ /dev/null
@@ -1,21 +0,0 @@
-// 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
-// except according to those terms.
-
-use structopt::StructOpt;
-
-#[derive(StructOpt, Debug)]
-#[structopt(name = "basic")]
-struct Opt {
- #[structopt(short, required = true)]
- n: Option<u32>,
-}
-
-fn main() {
- let opt = Opt::from_args();
- println!("{:?}", opt);
-}
diff --git a/structopt/tests/ui/option_required.stderr b/structopt/tests/ui/option_required.stderr
deleted file mode 100644
index 0230d57..0000000
--- a/structopt/tests/ui/option_required.stderr
+++ /dev/null
@@ -1,5 +0,0 @@
-error: required is meaningless for Option
- --> $DIR/option_required.rs:14:24
- |
-14 | #[structopt(short, required = true)]
- | ^^^^^^^^
diff --git a/structopt/tests/ui/parse_empty_try_from_os.rs b/structopt/tests/ui/parse_empty_try_from_os.rs
deleted file mode 100644
index acfef0b..0000000
--- a/structopt/tests/ui/parse_empty_try_from_os.rs
+++ /dev/null
@@ -1,21 +0,0 @@
-// 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
-// except according to those terms.
-
-use structopt::StructOpt;
-
-#[derive(StructOpt, Debug)]
-#[structopt(name = "basic")]
-struct Opt {
- #[structopt(parse(try_from_os_str))]
- s: String,
-}
-
-fn main() {
- let opt = Opt::from_args();
- println!("{:?}", opt);
-}
diff --git a/structopt/tests/ui/parse_empty_try_from_os.stderr b/structopt/tests/ui/parse_empty_try_from_os.stderr
deleted file mode 100644
index 3dc9f24..0000000
--- a/structopt/tests/ui/parse_empty_try_from_os.stderr
+++ /dev/null
@@ -1,5 +0,0 @@
-error: you must set parser for `try_from_os_str` explicitly
- --> $DIR/parse_empty_try_from_os.rs:14:23
- |
-14 | #[structopt(parse(try_from_os_str))]
- | ^^^^^^^^^^^^^^^
diff --git a/structopt/tests/ui/parse_function_is_not_path.rs b/structopt/tests/ui/parse_function_is_not_path.rs
deleted file mode 100644
index 5eebc57..0000000
--- a/structopt/tests/ui/parse_function_is_not_path.rs
+++ /dev/null
@@ -1,21 +0,0 @@
-// 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
-// except according to those terms.
-
-use structopt::StructOpt;
-
-#[derive(StructOpt, Debug)]
-#[structopt(name = "basic")]
-struct Opt {
- #[structopt(parse(from_str = "2"))]
- s: String,
-}
-
-fn main() {
- let opt = Opt::from_args();
- println!("{:?}", opt);
-}
diff --git a/structopt/tests/ui/parse_function_is_not_path.stderr b/structopt/tests/ui/parse_function_is_not_path.stderr
deleted file mode 100644
index 7cf7444..0000000
--- a/structopt/tests/ui/parse_function_is_not_path.stderr
+++ /dev/null
@@ -1,5 +0,0 @@
-error: `parse` argument must be a function path
- --> $DIR/parse_function_is_not_path.rs:14:34
- |
-14 | #[structopt(parse(from_str = "2"))]
- | ^^^
diff --git a/structopt/tests/ui/parse_literal_spec.rs b/structopt/tests/ui/parse_literal_spec.rs
deleted file mode 100644
index b6f125a..0000000
--- a/structopt/tests/ui/parse_literal_spec.rs
+++ /dev/null
@@ -1,21 +0,0 @@
-// 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
-// except according to those terms.
-
-use structopt::StructOpt;
-
-#[derive(StructOpt, Debug)]
-#[structopt(name = "basic")]
-struct Opt {
- #[structopt(parse("from_str"))]
- s: String,
-}
-
-fn main() {
- let opt = Opt::from_args();
- println!("{:?}", opt);
-}
diff --git a/structopt/tests/ui/parse_literal_spec.stderr b/structopt/tests/ui/parse_literal_spec.stderr
deleted file mode 100644
index 6e99e8b..0000000
--- a/structopt/tests/ui/parse_literal_spec.stderr
+++ /dev/null
@@ -1,5 +0,0 @@
-error: parser specification must start with identifier
- --> $DIR/parse_literal_spec.rs:14:23
- |
-14 | #[structopt(parse("from_str"))]
- | ^^^^^^^^^^
diff --git a/structopt/tests/ui/parse_not_zero_args.rs b/structopt/tests/ui/parse_not_zero_args.rs
deleted file mode 100644
index 8729178..0000000
--- a/structopt/tests/ui/parse_not_zero_args.rs
+++ /dev/null
@@ -1,21 +0,0 @@
-// 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
-// except according to those terms.
-
-use structopt::StructOpt;
-
-#[derive(StructOpt, Debug)]
-#[structopt(name = "basic")]
-struct Opt {
- #[structopt(parse(from_str, from_str))]
- s: String,
-}
-
-fn main() {
- let opt = Opt::from_args();
- println!("{:?}", opt);
-}
diff --git a/structopt/tests/ui/parse_not_zero_args.stderr b/structopt/tests/ui/parse_not_zero_args.stderr
deleted file mode 100644
index 11abe06..0000000
--- a/structopt/tests/ui/parse_not_zero_args.stderr
+++ /dev/null
@@ -1,5 +0,0 @@
-error: parse must have exactly one argument
- --> $DIR/parse_not_zero_args.rs:14:17
- |
-14 | #[structopt(parse(from_str, from_str))]
- | ^^^^^
diff --git a/structopt/tests/ui/positional_bool.rs b/structopt/tests/ui/positional_bool.rs
deleted file mode 100644
index 4dbf538..0000000
--- a/structopt/tests/ui/positional_bool.rs
+++ /dev/null
@@ -1,10 +0,0 @@
-use structopt::StructOpt;
-
-#[derive(StructOpt, Debug)]
-struct Opt {
- verbose: bool,
-}
-
-fn main() {
- Opt::from_args();
-} \ No newline at end of file
diff --git a/structopt/tests/ui/positional_bool.stderr b/structopt/tests/ui/positional_bool.stderr
deleted file mode 100644
index c3ed1ad..0000000
--- a/structopt/tests/ui/positional_bool.stderr
+++ /dev/null
@@ -1,10 +0,0 @@
-error: `bool` cannot be used as positional parameter with default parser
-
- = help: if you want to create a flag add `long` or `short`
- = help: If you really want a boolean parameter add an explicit parser, for example `parse(try_from_str)`
- = note: see also https://github.com/TeXitoi/structopt/tree/master/examples/true_or_false.rs
-
- --> $DIR/positional_bool.rs:5:14
- |
-5 | verbose: bool,
- | ^^^^
diff --git a/structopt/tests/ui/raw.rs b/structopt/tests/ui/raw.rs
deleted file mode 100644
index b94f783..0000000
--- a/structopt/tests/ui/raw.rs
+++ /dev/null
@@ -1,25 +0,0 @@
-// 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
-// except according to those terms.
-
-use structopt::StructOpt;
-
-#[derive(StructOpt, Debug)]
-struct Opt {
- #[structopt(raw(case_insensitive = "true"))]
- s: String,
-}
-
-#[derive(StructOpt, Debug)]
-struct Opt2 {
- #[structopt(raw(requires_if = r#""one", "two""#))]
- s: String,
-}
-fn main() {
- let opt = Opt::from_args();
- println!("{:?}", opt);
-}
diff --git a/structopt/tests/ui/raw.stderr b/structopt/tests/ui/raw.stderr
deleted file mode 100644
index 93b5e38..0000000
--- a/structopt/tests/ui/raw.stderr
+++ /dev/null
@@ -1,19 +0,0 @@
-error: `#[structopt(raw(...))` attributes are removed in structopt 0.3, they are replaced with raw methods
-
- = help: if you meant to call `clap::Arg::raw()` method you should use bool literal, like `raw(true)` or `raw(false)`
- = note: if you need to call `clap::Arg/App::case_insensitive` method you can do it like this: #[structopt(case_insensitive = true)]
-
- --> $DIR/raw.rs:13:17
- |
-13 | #[structopt(raw(case_insensitive = "true"))]
- | ^^^
-
-error: `#[structopt(raw(...))` attributes are removed in structopt 0.3, they are replaced with raw methods
-
- = help: if you meant to call `clap::Arg::raw()` method you should use bool literal, like `raw(true)` or `raw(false)`
- = note: if you need to call `clap::Arg/App::requires_if` method you can do it like this: #[structopt(requires_if("one", "two"))]
-
- --> $DIR/raw.rs:19:17
- |
-19 | #[structopt(raw(requires_if = r#""one", "two""#))]
- | ^^^
diff --git a/structopt/tests/ui/rename_all_wrong_casing.rs b/structopt/tests/ui/rename_all_wrong_casing.rs
deleted file mode 100644
index 4dabe14..0000000
--- a/structopt/tests/ui/rename_all_wrong_casing.rs
+++ /dev/null
@@ -1,21 +0,0 @@
-// 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
-// except according to those terms.
-
-use structopt::StructOpt;
-
-#[derive(StructOpt, Debug)]
-#[structopt(name = "basic", rename_all = "fail")]
-struct Opt {
- #[structopt(short)]
- s: String,
-}
-
-fn main() {
- let opt = Opt::from_args();
- println!("{:?}", opt);
-}
diff --git a/structopt/tests/ui/rename_all_wrong_casing.stderr b/structopt/tests/ui/rename_all_wrong_casing.stderr
deleted file mode 100644
index 2a72080..0000000
--- a/structopt/tests/ui/rename_all_wrong_casing.stderr
+++ /dev/null
@@ -1,5 +0,0 @@
-error: unsupported casing: `fail`
- --> $DIR/rename_all_wrong_casing.rs:12:42
- |
-12 | #[structopt(name = "basic", rename_all = "fail")]
- | ^^^^^^
diff --git a/structopt/tests/ui/skip_flatten.rs b/structopt/tests/ui/skip_flatten.rs
deleted file mode 100644
index 8668ec2..0000000
--- a/structopt/tests/ui/skip_flatten.rs
+++ /dev/null
@@ -1,42 +0,0 @@
-// 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
-// except according to those terms.
-
-use structopt::StructOpt;
-
-#[derive(StructOpt, Debug)]
-#[structopt(name = "make-cookie")]
-struct MakeCookie {
- #[structopt(short)]
- s: String,
-
- #[structopt(skip, flatten)]
- cmd: Command,
-}
-
-#[derive(StructOpt, Debug)]
-enum Command {
- #[structopt(name = "pound")]
- /// Pound acorns into flour for cookie dough.
- Pound { acorns: u32 },
-
- Sparkle {
- #[structopt(short)]
- color: String,
- },
-}
-
-impl Default for Command {
- fn default() -> Self {
- Command::Pound { acorns: 0 }
- }
-}
-
-fn main() {
- let opt = MakeCookie::from_args();
- println!("{:?}", opt);
-}
diff --git a/structopt/tests/ui/skip_flatten.stderr b/structopt/tests/ui/skip_flatten.stderr
deleted file mode 100644
index 76477a3..0000000
--- a/structopt/tests/ui/skip_flatten.stderr
+++ /dev/null
@@ -1,5 +0,0 @@
-error: subcommand, flatten and skip cannot be used together
- --> $DIR/skip_flatten.rs:17:23
- |
-17 | #[structopt(skip, flatten)]
- | ^^^^^^^
diff --git a/structopt/tests/ui/skip_subcommand.rs b/structopt/tests/ui/skip_subcommand.rs
deleted file mode 100644
index 5d21426..0000000
--- a/structopt/tests/ui/skip_subcommand.rs
+++ /dev/null
@@ -1,42 +0,0 @@
-// 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
-// except according to those terms.
-
-use structopt::StructOpt;
-
-#[derive(StructOpt, Debug)]
-#[structopt(name = "make-cookie")]
-struct MakeCookie {
- #[structopt(short)]
- s: String,
-
- #[structopt(subcommand, skip)]
- cmd: Command,
-}
-
-#[derive(StructOpt, Debug)]
-enum Command {
- #[structopt(name = "pound")]
- /// Pound acorns into flour for cookie dough.
- Pound { acorns: u32 },
-
- Sparkle {
- #[structopt(short)]
- color: String,
- },
-}
-
-impl Default for Command {
- fn default() -> Self {
- Command::Pound { acorns: 0 }
- }
-}
-
-fn main() {
- let opt = MakeCookie::from_args();
- println!("{:?}", opt);
-}
diff --git a/structopt/tests/ui/skip_subcommand.stderr b/structopt/tests/ui/skip_subcommand.stderr
deleted file mode 100644
index aba2d69..0000000
--- a/structopt/tests/ui/skip_subcommand.stderr
+++ /dev/null
@@ -1,5 +0,0 @@
-error: subcommand, flatten and skip cannot be used together
- --> $DIR/skip_subcommand.rs:17:29
- |
-17 | #[structopt(subcommand, skip)]
- | ^^^^
diff --git a/structopt/tests/ui/skip_with_other_options.rs b/structopt/tests/ui/skip_with_other_options.rs
deleted file mode 100644
index 73c5342..0000000
--- a/structopt/tests/ui/skip_with_other_options.rs
+++ /dev/null
@@ -1,15 +0,0 @@
-use structopt::StructOpt;
-
-#[derive(StructOpt, Debug)]
-#[structopt(name = "test")]
-pub struct Opt {
- #[structopt(long)]
- a: u32,
- #[structopt(skip, long)]
- b: u32,
-}
-
-fn main() {
- let opt = Opt::from_args();
- println!("{:?}", opt);
-}
diff --git a/structopt/tests/ui/skip_with_other_options.stderr b/structopt/tests/ui/skip_with_other_options.stderr
deleted file mode 100644
index 3345f92..0000000
--- a/structopt/tests/ui/skip_with_other_options.stderr
+++ /dev/null
@@ -1,5 +0,0 @@
-error: methods are not allowed for skipped fields
- --> $DIR/skip_with_other_options.rs:8:17
- |
-8 | #[structopt(skip, long)]
- | ^^^^
diff --git a/structopt/tests/ui/skip_without_default.rs b/structopt/tests/ui/skip_without_default.rs
deleted file mode 100644
index bc47511..0000000
--- a/structopt/tests/ui/skip_without_default.rs
+++ /dev/null
@@ -1,29 +0,0 @@
-// 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
-// except according to those terms.
-
-use structopt::StructOpt;
-
-#[derive(Debug)]
-enum Kind {
- A,
- B,
-}
-
-#[derive(StructOpt, Debug)]
-#[structopt(name = "test")]
-pub struct Opt {
- #[structopt(short)]
- number: u32,
- #[structopt(skip)]
- k: Kind,
-}
-
-fn main() {
- let opt = Opt::from_args();
- println!("{:?}", opt);
-}
diff --git a/structopt/tests/ui/skip_without_default.stderr b/structopt/tests/ui/skip_without_default.stderr
deleted file mode 100644
index 330898f..0000000
--- a/structopt/tests/ui/skip_without_default.stderr
+++ /dev/null
@@ -1,9 +0,0 @@
-error[E0277]: the trait bound `Kind: std::default::Default` is not satisfied
- --> $DIR/skip_without_default.rs:22:17
- |
-22 | #[structopt(skip)]
- | ^^^^ the trait `std::default::Default` is not implemented for `Kind`
- |
- = note: required by `std::default::Default::default`
-
-For more information about this error, try `rustc --explain E0277`.
diff --git a/structopt/tests/ui/struct_flatten.rs b/structopt/tests/ui/struct_flatten.rs
deleted file mode 100644
index 2b205f1..0000000
--- a/structopt/tests/ui/struct_flatten.rs
+++ /dev/null
@@ -1,21 +0,0 @@
-// 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
-// except according to those terms.
-
-use structopt::StructOpt;
-
-#[derive(StructOpt, Debug)]
-#[structopt(name = "basic", flatten)]
-struct Opt {
- #[structopt(short)]
- s: String,
-}
-
-fn main() {
- let opt = Opt::from_args();
- println!("{:?}", opt);
-}
diff --git a/structopt/tests/ui/struct_flatten.stderr b/structopt/tests/ui/struct_flatten.stderr
deleted file mode 100644
index 7f0fc6d..0000000
--- a/structopt/tests/ui/struct_flatten.stderr
+++ /dev/null
@@ -1,5 +0,0 @@
-error: flatten is only allowed on fields
- --> $DIR/struct_flatten.rs:12:29
- |
-12 | #[structopt(name = "basic", flatten)]
- | ^^^^^^^
diff --git a/structopt/tests/ui/struct_parse.rs b/structopt/tests/ui/struct_parse.rs
deleted file mode 100644
index e428b23..0000000
--- a/structopt/tests/ui/struct_parse.rs
+++ /dev/null
@@ -1,21 +0,0 @@
-// 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
-// except according to those terms.
-
-use structopt::StructOpt;
-
-#[derive(StructOpt, Debug)]
-#[structopt(name = "basic", parse(from_str))]
-struct Opt {
- #[structopt(short)]
- s: String,
-}
-
-fn main() {
- let opt = Opt::from_args();
- println!("{:?}", opt);
-}
diff --git a/structopt/tests/ui/struct_parse.stderr b/structopt/tests/ui/struct_parse.stderr
deleted file mode 100644
index 5518214..0000000
--- a/structopt/tests/ui/struct_parse.stderr
+++ /dev/null
@@ -1,5 +0,0 @@
-error: `parse` attribute is only allowed on fields
- --> $DIR/struct_parse.rs:12:29
- |
-12 | #[structopt(name = "basic", parse(from_str))]
- | ^^^^^
diff --git a/structopt/tests/ui/struct_subcommand.rs b/structopt/tests/ui/struct_subcommand.rs
deleted file mode 100644
index ac0b145..0000000
--- a/structopt/tests/ui/struct_subcommand.rs
+++ /dev/null
@@ -1,21 +0,0 @@
-// 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
-// except according to those terms.
-
-use structopt::StructOpt;
-
-#[derive(StructOpt, Debug)]
-#[structopt(name = "basic", subcommand)]
-struct Opt {
- #[structopt(short)]
- s: String,
-}
-
-fn main() {
- let opt = Opt::from_args();
- println!("{:?}", opt);
-}
diff --git a/structopt/tests/ui/struct_subcommand.stderr b/structopt/tests/ui/struct_subcommand.stderr
deleted file mode 100644
index 438f6f8..0000000
--- a/structopt/tests/ui/struct_subcommand.stderr
+++ /dev/null
@@ -1,5 +0,0 @@
-error: subcommand is only allowed on fields
- --> $DIR/struct_subcommand.rs:12:29
- |
-12 | #[structopt(name = "basic", subcommand)]
- | ^^^^^^^^^^
diff --git a/structopt/tests/ui/structopt_empty_attr.rs b/structopt/tests/ui/structopt_empty_attr.rs
deleted file mode 100644
index a7fc0b9..0000000
--- a/structopt/tests/ui/structopt_empty_attr.rs
+++ /dev/null
@@ -1,22 +0,0 @@
-// 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
-// except according to those terms.
-
-use structopt::StructOpt;
-
-#[derive(StructOpt, Debug)]
-#[structopt(name = "basic")]
-struct Opt {
- #[structopt]
- debug: bool,
-}
-
-fn main() {
- let opt = Opt::from_args();
- println!("{:?}", opt);
-}
-
diff --git a/structopt/tests/ui/structopt_empty_attr.stderr b/structopt/tests/ui/structopt_empty_attr.stderr
deleted file mode 100644
index dde3630..0000000
--- a/structopt/tests/ui/structopt_empty_attr.stderr
+++ /dev/null
@@ -1,5 +0,0 @@
-error: expected parentheses after `structopt`
- --> $DIR/structopt_empty_attr.rs:14:7
- |
-14 | #[structopt]
- | ^^^^^^^^^
diff --git a/structopt/tests/ui/structopt_name_value_attr.rs b/structopt/tests/ui/structopt_name_value_attr.rs
deleted file mode 100644
index 3d9388f..0000000
--- a/structopt/tests/ui/structopt_name_value_attr.rs
+++ /dev/null
@@ -1,22 +0,0 @@
-// 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
-// except according to those terms.
-
-use structopt::StructOpt;
-
-#[derive(StructOpt, Debug)]
-#[structopt(name = "basic")]
-struct Opt {
- #[structopt = "short"]
- debug: bool,
-}
-
-fn main() {
- let opt = Opt::from_args();
- println!("{:?}", opt);
-}
-
diff --git a/structopt/tests/ui/structopt_name_value_attr.stderr b/structopt/tests/ui/structopt_name_value_attr.stderr
deleted file mode 100644
index f681978..0000000
--- a/structopt/tests/ui/structopt_name_value_attr.stderr
+++ /dev/null
@@ -1,5 +0,0 @@
-error: expected parentheses
- --> $DIR/structopt_name_value_attr.rs:14:17
- |
-14 | #[structopt = "short"]
- | ^
diff --git a/structopt/tests/ui/subcommand_and_flatten.rs b/structopt/tests/ui/subcommand_and_flatten.rs
deleted file mode 100644
index 742ee6d..0000000
--- a/structopt/tests/ui/subcommand_and_flatten.rs
+++ /dev/null
@@ -1,36 +0,0 @@
-// 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
-// except according to those terms.
-
-use structopt::StructOpt;
-
-#[derive(StructOpt, Debug)]
-#[structopt(name = "make-cookie")]
-struct MakeCookie {
- #[structopt(short)]
- s: String,
-
- #[structopt(subcommand, flatten)]
- cmd: Command,
-}
-
-#[derive(StructOpt, Debug)]
-enum Command {
- #[structopt(name = "pound")]
- /// Pound acorns into flour for cookie dough.
- Pound { acorns: u32 },
-
- Sparkle {
- #[structopt(short)]
- color: String,
- },
-}
-
-fn main() {
- let opt = MakeCookie::from_args();
- println!("{:?}", opt);
-}
diff --git a/structopt/tests/ui/subcommand_and_flatten.stderr b/structopt/tests/ui/subcommand_and_flatten.stderr
deleted file mode 100644
index cacea5e..0000000
--- a/structopt/tests/ui/subcommand_and_flatten.stderr
+++ /dev/null
@@ -1,5 +0,0 @@
-error: subcommand, flatten and skip cannot be used together
- --> $DIR/subcommand_and_flatten.rs:17:29
- |
-17 | #[structopt(subcommand, flatten)]
- | ^^^^^^^
diff --git a/structopt/tests/ui/subcommand_and_methods.rs b/structopt/tests/ui/subcommand_and_methods.rs
deleted file mode 100644
index 890f10c..0000000
--- a/structopt/tests/ui/subcommand_and_methods.rs
+++ /dev/null
@@ -1,36 +0,0 @@
-// 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
-// except according to those terms.
-
-use structopt::StructOpt;
-
-#[derive(StructOpt, Debug)]
-#[structopt(name = "make-cookie")]
-struct MakeCookie {
- #[structopt(short)]
- s: String,
-
- #[structopt(subcommand, long)]
- cmd: Command,
-}
-
-#[derive(StructOpt, Debug)]
-enum Command {
- #[structopt(name = "pound")]
- /// Pound acorns into flour for cookie dough.
- Pound { acorns: u32 },
-
- Sparkle {
- #[structopt(short)]
- color: String,
- },
-}
-
-fn main() {
- let opt = MakeCookie::from_args();
- println!("{:?}", opt);
-}
diff --git a/structopt/tests/ui/subcommand_and_methods.stderr b/structopt/tests/ui/subcommand_and_methods.stderr
deleted file mode 100644
index ccaf28d..0000000
--- a/structopt/tests/ui/subcommand_and_methods.stderr
+++ /dev/null
@@ -1,5 +0,0 @@
-error: methods in attributes are not allowed for subcommand
- --> $DIR/subcommand_and_methods.rs:17:17
- |
-17 | #[structopt(subcommand, long)]
- | ^^^^^^^^^^
diff --git a/structopt/tests/ui/subcommand_and_parse.rs b/structopt/tests/ui/subcommand_and_parse.rs
deleted file mode 100644
index f24e4bc..0000000
--- a/structopt/tests/ui/subcommand_and_parse.rs
+++ /dev/null
@@ -1,36 +0,0 @@
-// 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
-// except according to those terms.
-
-use structopt::StructOpt;
-
-#[derive(StructOpt, Debug)]
-#[structopt(name = "make-cookie")]
-struct MakeCookie {
- #[structopt(short)]
- s: String,
-
- #[structopt(subcommand, parse(from_occurrences))]
- cmd: Command,
-}
-
-#[derive(StructOpt, Debug)]
-enum Command {
- #[structopt(name = "pound")]
- /// Pound acorns into flour for cookie dough.
- Pound { acorns: u32 },
-
- Sparkle {
- #[structopt(short)]
- color: String,
- },
-}
-
-fn main() {
- let opt = MakeCookie::from_args();
- println!("{:?}", opt);
-}
diff --git a/structopt/tests/ui/subcommand_and_parse.stderr b/structopt/tests/ui/subcommand_and_parse.stderr
deleted file mode 100644
index 4070056..0000000
--- a/structopt/tests/ui/subcommand_and_parse.stderr
+++ /dev/null
@@ -1,5 +0,0 @@
-error: parse attribute is not allowed for subcommand
- --> $DIR/subcommand_and_parse.rs:17:29
- |
-17 | #[structopt(subcommand, parse(from_occurrences))]
- | ^^^^^
diff --git a/structopt/tests/ui/subcommand_opt_opt.rs b/structopt/tests/ui/subcommand_opt_opt.rs
deleted file mode 100644
index 1dd84e5..0000000
--- a/structopt/tests/ui/subcommand_opt_opt.rs
+++ /dev/null
@@ -1,36 +0,0 @@
-// 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
-// except according to those terms.
-
-use structopt::StructOpt;
-
-#[derive(StructOpt, Debug)]
-#[structopt(name = "make-cookie")]
-struct MakeCookie {
- #[structopt(short)]
- s: String,
-
- #[structopt(subcommand)]
- cmd: Option<Option<Command>>,
-}
-
-#[derive(StructOpt, Debug)]
-enum Command {
- #[structopt(name = "pound")]
- /// Pound acorns into flour for cookie dough.
- Pound { acorns: u32 },
-
- Sparkle {
- #[structopt(short)]
- color: String,
- },
-}
-
-fn main() {
- let opt = MakeCookie::from_args();
- println!("{:?}", opt);
-}
diff --git a/structopt/tests/ui/subcommand_opt_opt.stderr b/structopt/tests/ui/subcommand_opt_opt.stderr
deleted file mode 100644
index daad02f..0000000
--- a/structopt/tests/ui/subcommand_opt_opt.stderr
+++ /dev/null
@@ -1,5 +0,0 @@
-error: Option<Option<T>> type is not allowed for subcommand
- --> $DIR/subcommand_opt_opt.rs:18:10
- |
-18 | cmd: Option<Option<Command>>,
- | ^^^^^^
diff --git a/structopt/tests/ui/subcommand_opt_vec.rs b/structopt/tests/ui/subcommand_opt_vec.rs
deleted file mode 100644
index 17bffbf..0000000
--- a/structopt/tests/ui/subcommand_opt_vec.rs
+++ /dev/null
@@ -1,36 +0,0 @@
-// 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
-// except according to those terms.
-
-use structopt::StructOpt;
-
-#[derive(StructOpt, Debug)]
-#[structopt(name = "make-cookie")]
-struct MakeCookie {
- #[structopt(short)]
- s: String,
-
- #[structopt(subcommand)]
- cmd: Option<Vec<Command>>,
-}
-
-#[derive(StructOpt, Debug)]
-enum Command {
- #[structopt(name = "pound")]
- /// Pound acorns into flour for cookie dough.
- Pound { acorns: u32 },
-
- Sparkle {
- #[structopt(short)]
- color: String,
- },
-}
-
-fn main() {
- let opt = MakeCookie::from_args();
- println!("{:?}", opt);
-}
diff --git a/structopt/tests/ui/subcommand_opt_vec.stderr b/structopt/tests/ui/subcommand_opt_vec.stderr
deleted file mode 100644
index a9833a6..0000000
--- a/structopt/tests/ui/subcommand_opt_vec.stderr
+++ /dev/null
@@ -1,5 +0,0 @@
-error: Option<Vec<T>> type is not allowed for subcommand
- --> $DIR/subcommand_opt_vec.rs:18:10
- |
-18 | cmd: Option<Vec<Command>>,
- | ^^^^^^
diff --git a/structopt/tests/ui/tuple_struct.rs b/structopt/tests/ui/tuple_struct.rs
deleted file mode 100644
index af9b1d5..0000000
--- a/structopt/tests/ui/tuple_struct.rs
+++ /dev/null
@@ -1,18 +0,0 @@
-// 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
-// except according to those terms.
-
-use structopt::StructOpt;
-
-#[derive(StructOpt, Debug)]
-#[structopt(name = "basic")]
-struct Opt(u32);
-
-fn main() {
- let opt = Opt::from_args();
- println!("{:?}", opt);
-}
diff --git a/structopt/tests/ui/tuple_struct.stderr b/structopt/tests/ui/tuple_struct.stderr
deleted file mode 100644
index 9f2876f..0000000
--- a/structopt/tests/ui/tuple_struct.stderr
+++ /dev/null
@@ -1,5 +0,0 @@
-error: structopt only supports non-tuple structs and enums
- --> $DIR/tuple_struct.rs:11:10
- |
-11 | #[derive(StructOpt, Debug)]
- | ^^^^^^^^^