diff options
| author | Jeffrey Seyfried <jeffrey.seyfried@gmail.com> | 2016-09-21 09:23:17 +0000 |
|---|---|---|
| committer | Jeffrey Seyfried <jeffrey.seyfried@gmail.com> | 2016-09-21 21:39:41 +0000 |
| commit | f4fa62f4f2b984ca97e7d68dbf8c2f3cf88866c5 (patch) | |
| tree | 41284a788353796f053527722360bc586d71e93b | |
| parent | 4db157af71dc32d38941b082d016c41adebc7a1d (diff) | |
| download | rust-f4fa62f4f2b984ca97e7d68dbf8c2f3cf88866c5.tar.gz rust-f4fa62f4f2b984ca97e7d68dbf8c2f3cf88866c5.zip | |
Add regression test.
| -rw-r--r-- | src/test/compile-fail/issue-36617.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/compile-fail/issue-36617.rs b/src/test/compile-fail/issue-36617.rs new file mode 100644 index 00000000000..9f5eeb1a45d --- /dev/null +++ b/src/test/compile-fail/issue-36617.rs @@ -0,0 +1,11 @@ +// Copyright 2016 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. + +#![derive(Copy)] //~ ERROR `derive` may only be applied to structs, enums and unions |
