1
Fork 0

rustdoc: add a couple of regression tests

This commit is contained in:
León Orell Valerian Liehr 2024-04-02 18:37:01 +02:00
parent a3cfa031fa
commit 5ee4d13709
No known key found for this signature in database
GPG key ID: D17A07215F68E713
5 changed files with 85 additions and 0 deletions

View file

@ -0,0 +1,10 @@
// We used to ICE here while trying to synthesize auto trait impls.
// issue: 112828
struct Outer(Inner);
struct Inner;
unsafe impl<Q: Trait> Send for Inner {}
//~^ ERROR the type parameter `Q` is not constrained by the impl trait, self type, or predicates
trait Trait {}