-// FIXME(fee1-dead): this should have a better error message
#![feature(const_trait_impl)]
+
struct NonConstAdd(i32);
impl std::ops::Add for NonConstAdd {
impl const Foo for NonConstAdd {
type Bar = NonConstAdd;
- //~^ ERROR
+ //~^ ERROR: the trait bound `NonConstAdd: ~const Add` is not satisfied
}
trait Baz {