]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/object-safety/object-safety-associated-consts.curr.stderr
Change wording for object unsafe because of assoc const
[rust.git] / src / test / ui / object-safety / object-safety-associated-consts.curr.stderr
index e0e0344af75919bd03851d8b6cb1b6d9353c318c..890acde35c4f8763386dac27f61e8ef7a8a345c1 100644 (file)
@@ -4,7 +4,7 @@ error[E0038]: the trait `Bar` cannot be made into an object
 LL | trait Bar {
    |       --- this trait cannot be made into an object...
 LL |     const X: usize;
-   |           - ...because it cannot contain associated consts like `X`
+   |           - ...because it contains this associated `const`
 ...
 LL | fn make_bar<T:Bar>(t: &T) -> &dyn Bar {
    |                              ^^^^^^^^ the trait `Bar` cannot be made into an object