mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-22 20:03:37 +00:00
Add test for #10535
This commit is contained in:
parent
6ae065ffd6
commit
b4738a6b57
@ -492,3 +492,15 @@ mod issue_9782_method_variant {
|
||||
S.foo::<&[u8; 100]>(&a);
|
||||
}
|
||||
}
|
||||
|
||||
mod issue_10535 {
|
||||
static SOME_STATIC: String = String::new();
|
||||
|
||||
static UNIT: () = compute(&SOME_STATIC);
|
||||
|
||||
pub const fn compute<T>(_: T)
|
||||
where
|
||||
T: Copy,
|
||||
{
|
||||
}
|
||||
}
|
||||
|
@ -492,3 +492,15 @@ mod issue_9782_method_variant {
|
||||
S.foo::<&[u8; 100]>(&a);
|
||||
}
|
||||
}
|
||||
|
||||
mod issue_10535 {
|
||||
static SOME_STATIC: String = String::new();
|
||||
|
||||
static UNIT: () = compute(&SOME_STATIC);
|
||||
|
||||
pub const fn compute<T>(_: T)
|
||||
where
|
||||
T: Copy,
|
||||
{
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user