Fix some rebasing fallout.
This commit is contained in:
parent
e546fea0a1
commit
8fcf3e33e4
@ -14,10 +14,9 @@ fn main() {
|
||||
let x = S.other(S.id());
|
||||
}
|
||||
|
||||
// no_mangle and extern C to make sure this gets instantiated even in an
|
||||
// executable.
|
||||
// no_mangle to make sure this gets instantiated even in an executable.
|
||||
#[no_mangle]
|
||||
pub extern "C" fn test() {
|
||||
pub fn test() {
|
||||
let u = S;
|
||||
let mut v = S;
|
||||
drop(v);
|
||||
|
@ -18,7 +18,9 @@ fn guard2(_:i32) -> bool {
|
||||
true
|
||||
}
|
||||
|
||||
fn full_tested_match() {
|
||||
// no_mangle to make sure this gets instantiated even in an executable.
|
||||
#[no_mangle]
|
||||
pub fn full_tested_match() {
|
||||
let _ = match Some(42) {
|
||||
Some(x) if guard() => (1, x),
|
||||
Some(y) => (2, y),
|
||||
@ -26,7 +28,9 @@ fn full_tested_match() {
|
||||
};
|
||||
}
|
||||
|
||||
fn full_tested_match2() {
|
||||
// no_mangle to make sure this gets instantiated even in an executable.
|
||||
#[no_mangle]
|
||||
pub fn full_tested_match2() {
|
||||
let _ = match Some(42) {
|
||||
Some(x) if guard() => (1, x),
|
||||
None => (3, 3),
|
||||
|
Loading…
Reference in New Issue
Block a user