]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_error_codes/error_codes/E0746.md
Fix error index test
[rust.git] / src / librustc_error_codes / error_codes / E0746.md
index 538c9d720d71b373fe205f1ace1226bb8b901d53..2df27bcf0bf093377b86f94b252495c47255d47f 100644 (file)
@@ -2,7 +2,8 @@ Return types cannot be `dyn Trait`s as they must be `Sized`.
 
 Erroneous code example:
 
-```compile_fail,E0746
+```compile_fail,E0277
+# // FIXME: after E0746 is in beta, change the above
 trait T {
     fn bar(&self);
 }
@@ -12,7 +13,7 @@ impl T for S {
 }
 
 // Having the trait `T` as return type is invalid because bare traits do not
-have a statically known size:
+// have a statically known size:
 fn foo() -> dyn T {
     S(42)
 }