mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-24 23:27:17 +00:00
`nominal_obligations` calls `predicates_of` on a `Sized` obligation, effectively elaborating the trait and making the well-formedness checking machinery do a bunch of extra work checking a `MetaSized` obligation is well-formed, but given that both `Sized` and `MetaSized` are built-ins, if `Sized` is otherwise well-formed, so `MetaSized` will be.
12 lines
352 B
Plaintext
12 lines
352 B
Plaintext
error: lifetime may not live long enough
|
|
--> $DIR/lifetime-incomplete-prefer-sized-builtin-over-wc.rs:20:5
|
|
|
|
|
LL | fn foo<'a, T: ?Sized>()
|
|
| -- lifetime `'a` defined here
|
|
...
|
|
LL | is_sized::<(MyType<'a, T>,)>();
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ requires that `'a` must outlive `'static`
|
|
|
|
error: aborting due to 1 previous error
|
|
|