2014-08-28 01:50:00 -05:00
|
|
|
// Copyright 2012 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.
|
|
|
|
|
2015-04-18 00:12:20 -05:00
|
|
|
trait Trait {}
|
2014-08-28 01:50:00 -05:00
|
|
|
|
|
|
|
pub fn main() {
|
|
|
|
let x: Vec<Trait + Sized> = Vec::new();
|
2016-03-29 12:12:31 -05:00
|
|
|
//~^ ERROR `Trait + Sized : std::marker::Sized` is not satisfied
|
|
|
|
//~| ERROR `Trait + Sized : std::marker::Sized` is not satisfied
|
|
|
|
//~| ERROR `Trait + Sized : std::marker::Sized` is not satisfied
|
2014-08-28 01:50:00 -05:00
|
|
|
}
|