From 40f047dc7af6c282080bf1afecced966d30289e1 Mon Sep 17 00:00:00 2001 From: Jeffrey Seyfried Date: Mon, 23 May 2016 10:16:49 +0000 Subject: [PATCH] Add test --- src/test/compile-fail/issue-33571.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/test/compile-fail/issue-33571.rs diff --git a/src/test/compile-fail/issue-33571.rs b/src/test/compile-fail/issue-33571.rs new file mode 100644 index 00000000000..5dfc41c8f4a --- /dev/null +++ b/src/test/compile-fail/issue-33571.rs @@ -0,0 +1,14 @@ +// 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +#[derive(Clone, + Sync, //~ ERROR this unsafe trait should be implemented explicitly + Copy)] +enum Foo {}