mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
Fix some unsizing problems in mir
This commit is contained in:
parent
5eb4796d3d
commit
6d2d1387af
5 changed files with 135 additions and 51 deletions
|
@ -369,11 +369,11 @@ fn tuple() {
|
|||
}
|
||||
|
||||
#[test]
|
||||
fn non_zero() {
|
||||
fn non_zero_and_non_null() {
|
||||
size_and_align! {
|
||||
minicore: non_zero, option;
|
||||
use core::num::NonZeroU8;
|
||||
struct Goal(Option<NonZeroU8>);
|
||||
minicore: non_zero, non_null, option;
|
||||
use core::{num::NonZeroU8, ptr::NonNull};
|
||||
struct Goal(Option<NonZeroU8>, Option<NonNull<i32>>);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue