2013-07-17 17:32:02 -05:00
|
|
|
// Copyright 2013 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.
|
|
|
|
|
2013-10-13 20:48:47 -05:00
|
|
|
trait A {}
|
2013-07-17 17:32:02 -05:00
|
|
|
|
|
|
|
struct Struct {
|
2014-08-27 20:46:52 -05:00
|
|
|
r: A+'static
|
2013-07-17 17:32:02 -05:00
|
|
|
}
|
|
|
|
|
2014-10-18 15:12:02 -05:00
|
|
|
fn new_struct(r: A+'static)
|
2015-01-05 19:03:46 -06:00
|
|
|
-> Struct { //~^ ERROR the trait `core::markers::Sized` is not implemented
|
|
|
|
//~^ ERROR the trait `core::markers::Sized` is not implemented
|
2014-09-12 09:45:39 -05:00
|
|
|
Struct { r: r }
|
2013-07-17 17:32:02 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
trait Curve {}
|
2014-08-27 20:46:52 -05:00
|
|
|
enum E {X(Curve+'static)}
|
2013-07-17 17:32:02 -05:00
|
|
|
fn main() {}
|