]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/rfc-2632-const-trait-impl/assoc-type.rs
Improve selection errors for `~const` trait bounds
[rust.git] / src / test / ui / rfc-2632-const-trait-impl / assoc-type.rs
index 7b012083c5a3d2843807f61eec7fb7b00e64354e..2d6e7b39f5732dabd762505a9ff0149c0090243a 100644 (file)
@@ -1,5 +1,5 @@
-// FIXME(fee1-dead): this should have a better error message
 #![feature(const_trait_impl)]
+
 struct NonConstAdd(i32);
 
 impl std::ops::Add for NonConstAdd {
@@ -16,7 +16,7 @@ trait Foo {
 
 impl const Foo for NonConstAdd {
     type Bar = NonConstAdd;
-    //~^ ERROR
+    //~^ ERROR: the trait bound `NonConstAdd: ~const Add` is not satisfied
 }
 
 trait Baz {