// 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 or the MIT license // , at your // option. This file may not be copied, modified, or distributed // except according to those terms. trait Trait {} struct Foo { x: T, } enum Bar { ABar(isize), BBar(T), CBar(usize), } impl Foo { //~^ ERROR `T : Trait` is not satisfied fn uhoh() {} } struct Baz { a: Foo, //~ ERROR E0277 } enum Boo { Quux(Bar), //~ ERROR E0277 } struct Badness { b: Foo, //~ ERROR E0277 } enum MoreBadness { EvenMoreBadness(Bar), //~ ERROR E0277 } struct TupleLike( Foo, //~ ERROR E0277 ); enum Enum { DictionaryLike { field: Bar }, //~ ERROR E0277 } fn main() { }