diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2015-02-03 20:11:38 +1100 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2015-02-04 09:39:40 +1100 |
| commit | df1ac7aa63ea89a067c57663eab035f7b83f6933 (patch) | |
| tree | f053537b23c43f7e1badcc0409e740202461bb9b /src/test/compile-fail/deriving-span-Rand-enum.rs | |
| parent | eaf4c5c784637f3df8bdebc6ec21dbd4bc69420a (diff) | |
| download | rust-df1ac7aa63ea89a067c57663eab035f7b83f6933.tar.gz rust-df1ac7aa63ea89a067c57663eab035f7b83f6933.zip | |
Deprecate in-tree `rand`, `std::rand` and `#[derive(Rand)]`.
Use the crates.io crate `rand` (version 0.1 should be a drop in replacement for `std::rand`) and `rand_macros` (`#[derive_Rand]` should be a drop-in replacement). [breaking-change]
Diffstat (limited to 'src/test/compile-fail/deriving-span-Rand-enum.rs')
| -rw-r--r-- | src/test/compile-fail/deriving-span-Rand-enum.rs | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/test/compile-fail/deriving-span-Rand-enum.rs b/src/test/compile-fail/deriving-span-Rand-enum.rs deleted file mode 100644 index dcfdbdc8062..00000000000 --- a/src/test/compile-fail/deriving-span-Rand-enum.rs +++ /dev/null @@ -1,25 +0,0 @@ -// 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-deriving-span-tests.py' - -extern crate rand; - - -struct Error; - -#[derive(Rand)] -enum Enum { - A( - Error //~ ERROR - ) -} - -fn main() {} |
