diff options
| author | James Sanderson <zofrex@gmail.com> | 2018-04-19 21:11:43 +0100 |
|---|---|---|
| committer | James Sanderson <zofrex@gmail.com> | 2018-04-24 21:30:38 +0100 |
| commit | d80797b85ec9aee1762d6488cc48ba3f787629d7 (patch) | |
| tree | 2d45623eb054bbe41af30f7ada4a1c5fb5417719 | |
| parent | 1a72d6dcd17ae02d56942fd3eb1a891eb51c45c6 (diff) | |
| download | rust-d80797b85ec9aee1762d6488cc48ba3f787629d7.tar.gz rust-d80797b85ec9aee1762d6488cc48ba3f787629d7.zip | |
Test deriving hygiene
| -rw-r--r-- | src/test/run-pass-fulldeps/deriving-hygiene.rs | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/test/run-pass-fulldeps/deriving-hygiene.rs b/src/test/run-pass-fulldeps/deriving-hygiene.rs new file mode 100644 index 00000000000..532f2456599 --- /dev/null +++ b/src/test/run-pass-fulldeps/deriving-hygiene.rs @@ -0,0 +1,25 @@ +// Copyright 2018 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. + +#![feature(rustc_private)] +extern crate serialize; + +pub const other: u8 = 1; +pub const f: u8 = 1; +pub const d: u8 = 1; +pub const s: u8 = 1; +pub const state: u8 = 1; +pub const cmp: u8 = 1; + +#[derive(Ord,Eq,PartialOrd,PartialEq,Debug,Decodable,Encodable,Hash)] +struct Foo {} + +fn main() { +} |
