Skip to content

Commit 7c39270

Browse files
committed
Bless tests from rebase
1 parent e076ce8 commit 7c39270

File tree

2 files changed

+9
-20
lines changed

2 files changed

+9
-20
lines changed

tests/ui/const-generics/adt_const_params/non_valtreeable_const_arg-2.stderr

+2-20
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,7 @@ error[E0741]: using function pointers as const generic parameters is forbidden
1515
LL | struct Wrapper<const F: fn()>;
1616
| ^^^^
1717

18-
error[E0599]: the function or associated item `call` exists for struct `Wrapper<function>`, but its trait bounds were not satisfied
19-
--> $DIR/non_valtreeable_const_arg-2.rs:17:26
20-
|
21-
LL | struct Wrapper<const F: fn()>;
22-
| ----------------------------- function or associated item `call` not found for this struct because it doesn't satisfy `Wrapper<function>: Fn<_>`
23-
...
24-
LL | Wrapper::<function>::call;
25-
| ^^^^ function or associated item cannot be called on `Wrapper<function>` due to unsatisfied trait bounds
26-
|
27-
= note: the following trait bounds were not satisfied:
28-
`Wrapper<function>: Fn<_>`
29-
which is required by `&Wrapper<function>: Fn<_>`
30-
note: the trait `Fn` must be implemented
31-
--> $SRC_DIR/core/src/ops/function.rs:LL:COL
32-
= help: items from traits can only be used if the trait is implemented and in scope
33-
= note: the following trait defines an item `call`, perhaps you need to implement it:
34-
candidate #1: `Fn`
35-
36-
error: aborting due to 3 previous errors
18+
error: aborting due to 2 previous errors
3719

38-
Some errors have detailed explanations: E0425, E0599, E0741.
20+
Some errors have detailed explanations: E0425, E0741.
3921
For more information about an error, try `rustc --explain E0425`.

tests/ui/stable-mir-print/operands.stdout

+7
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,13 @@ fn closures::{closure#0}(_1: {closure@$DIR/operands.rs:47:5: 47:19}, _2: bool) -
254254
return;
255255
}
256256
}
257+
fn Ctors::Unit() -> Ctors {
258+
let mut _0: Ctors;
259+
bb0: {
260+
_0 = Ctors::Unit;
261+
return;
262+
}
263+
}
257264
fn Ctors::TupLike(_1: bool) -> Ctors {
258265
let mut _0: Ctors;
259266
bb0: {

0 commit comments

Comments
 (0)