/// ```ignore (internal compiler representation so lifetime syntax is invalid) /// <T as Foo<'0>>::Item: '1 /// ```
This produces an error, should it ?
The error is
= note: error from rustc: lifetimes cannot start with a number
I would just use
But in any case, it is strange that the compiler is still testing it. I don't think we should do that... I'll send a fix for it then.
@GuillaumeGomez that's because we use the compiler for syntax highlighting
I don't think it will be an easy fix - maybe you could ignore the errors? but it still wouldn't be highlighted as Rust
no it wouldn't, but we can at least improve the error message
saying something like: "it needs to be a valid rust code to get syntax highlighting. Consider using the
text attribute instead"
I think you mean
text attribute, but yeah that seems a lot better
Last updated: Oct 11 2021 at 22:34 UTC