This commit is contained in:
Without Boats 2017-04-24 01:40:17 -07:00
parent ed5d09d8f3
commit 95ffda1e9e

View file

@ -16,9 +16,9 @@ trait Bar {
}
fn make_bar<T:Bar>(t: &T) -> &Bar {
//~^ ERROR E0038
//~| NOTE the trait cannot contain associated consts like `X`
//~| NOTE the trait `Bar` cannot be made into an object
//~^ ERROR E0038
//~| NOTE the trait cannot contain associated consts like `X`
//~| NOTE the trait `Bar` cannot be made into an object
t
}