diff options
| author | bors <bors@rust-lang.org> | 2015-05-03 17:22:09 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-05-03 17:22:09 +0000 |
| commit | 1a60dc4fc4b66760b71f1700cdb8b151cb8a67d9 (patch) | |
| tree | 3998daf2afd0c715a001ea3f4ae962e5827d7b97 /src/test | |
| parent | 26933a638c360442412b51aa70fe25e419f44314 (diff) | |
| parent | 57d8289754767e046a01abaab6054b7146c51f74 (diff) | |
| download | rust-1a60dc4fc4b66760b71f1700cdb8b151cb8a67d9.tar.gz rust-1a60dc4fc4b66760b71f1700cdb8b151cb8a67d9.zip | |
Auto merge of #24737 - P1start:dst-cell, r=alexcrichton
This + DST coercions (#24619) would allow code like `Rc<RefCell<Box<Trait>>>` to be simplified to `Rc<RefCell<Trait>>`.
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/compile-fail/bad-sized.rs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/test/compile-fail/bad-sized.rs b/src/test/compile-fail/bad-sized.rs index fca74e457c2..8c13ff70515 100644 --- a/src/test/compile-fail/bad-sized.rs +++ b/src/test/compile-fail/bad-sized.rs @@ -8,14 +8,10 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -use std::cell::RefCell; - trait Trait {} pub fn main() { let x: Vec<Trait + Sized> = Vec::new(); //~^ ERROR the trait `core::marker::Sized` is not implemented //~^^ ERROR the trait `core::marker::Sized` is not implemented - let x: Vec<Box<RefCell<Trait + Sized>>> = Vec::new(); - //~^ ERROR the trait `core::marker::Sized` is not implemented } |
