diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2014-01-27 15:28:04 +1100 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2014-01-27 15:28:04 +1100 |
| commit | d9a204bf4c32743fad187b5c660279c779643b3f (patch) | |
| tree | 1fc4ddf0161e478ec4b2a6fa5e3d0fdf422316b8 /src/test/compile-fail/deriving-span-Rand-enum.rs | |
| parent | b079ebeb8da4198112831af05c88b48974268337 (diff) | |
| download | rust-d9a204bf4c32743fad187b5c660279c779643b3f.tar.gz rust-d9a204bf4c32743fad187b5c660279c779643b3f.zip | |
Add autogenerated tests for the spans of various derived traits.
Diffstat (limited to 'src/test/compile-fail/deriving-span-Rand-enum.rs')
| -rw-r--r-- | src/test/compile-fail/deriving-span-Rand-enum.rs | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/test/compile-fail/deriving-span-Rand-enum.rs b/src/test/compile-fail/deriving-span-Rand-enum.rs new file mode 100644 index 00000000000..ef29ce08292 --- /dev/null +++ b/src/test/compile-fail/deriving-span-Rand-enum.rs @@ -0,0 +1,26 @@ +// Copyright 2014 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// 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. + +// This file was auto-generated using 'src/etc/generate-keyword-span-tests.py' + +#[feature(struct_variant)]; +extern mod extra; + + +struct Error; + +#[deriving(Rand)] +enum Enum { + A( + Error //~ ERROR + ) +} + +fn main() {} |
