11error: function pointer types may not have generic parameters
2- --> $DIR/generics.rs:14 :40
2+ --> $DIR/generics.rs:15 :40
33 |
44LL | f1: extern "cmse-nonsecure-call" fn<U: Copy>(U, u32, u32, u32) -> u64,
55 | ^^^^^^^^^
66
77error[E0425]: cannot find type `U` in this scope
8- --> $DIR/generics.rs:14 :50
8+ --> $DIR/generics.rs:15 :50
99 |
1010LL | struct Test<T: Copy> {
1111 | - similarly named type parameter `T` defined here
@@ -23,51 +23,51 @@ LL | struct Test<T: Copy, U> {
2323 | +++
2424
2525error[E0562]: `impl Trait` is not allowed in `fn` pointer parameters
26- --> $DIR/generics.rs:17 :41
26+ --> $DIR/generics.rs:18 :41
2727 |
2828LL | f2: extern "cmse-nonsecure-call" fn(impl Copy, u32, u32, u32) -> impl Copy,
2929 | ^^^^^^^^^
3030 |
3131 = note: `impl Trait` is only allowed in arguments and return types of functions and methods
3232
3333error[E0562]: `impl Trait` is not allowed in `fn` pointer return types
34- --> $DIR/generics.rs:17 :70
34+ --> $DIR/generics.rs:18 :70
3535 |
3636LL | f2: extern "cmse-nonsecure-call" fn(impl Copy, u32, u32, u32) -> impl Copy,
3737 | ^^^^^^^^^
3838 |
3939 = note: `impl Trait` is only allowed in arguments and return types of functions and methods
4040
4141error[E0562]: `impl Trait` is not allowed in `fn` pointer parameters
42- --> $DIR/generics.rs:20 :42
42+ --> $DIR/generics.rs:21 :42
4343 |
4444LL | f3: extern "cmse-nonsecure-call" fn((impl Copy, u32), u32, u32, u32) -> (impl Copy, u32),
4545 | ^^^^^^^^^
4646 |
4747 = note: `impl Trait` is only allowed in arguments and return types of functions and methods
4848
4949error[E0562]: `impl Trait` is not allowed in `fn` pointer return types
50- --> $DIR/generics.rs:20 :78
50+ --> $DIR/generics.rs:21 :78
5151 |
5252LL | f3: extern "cmse-nonsecure-call" fn((impl Copy, u32), u32, u32, u32) -> (impl Copy, u32),
5353 | ^^^^^^^^^
5454 |
5555 = note: `impl Trait` is only allowed in arguments and return types of functions and methods
5656
5757error[E0798]: generics are not allowed in `extern "cmse-nonsecure-call"` signatures
58- --> $DIR/generics.rs:23 :41
58+ --> $DIR/generics.rs:24 :41
5959 |
6060LL | f4: extern "cmse-nonsecure-call" fn(T, u32, u32, u32) -> u64,
6161 | ^
6262
6363error[E0798]: generics are not allowed in `extern "cmse-nonsecure-call"` signatures
64- --> $DIR/generics.rs:24 :41
64+ --> $DIR/generics.rs:25 :41
6565 |
6666LL | f5: extern "cmse-nonsecure-call" fn(Wrapper<T>, u32, u32, u32) -> u64,
6767 | ^^^^^^^^^^
6868
6969error[E0798]: return value of `"cmse-nonsecure-call"` function too large to pass via registers
70- --> $DIR/generics.rs:30 :71
70+ --> $DIR/generics.rs:31 :71
7171 |
7272LL | type WithTraitObject = extern "cmse-nonsecure-call" fn(&dyn Trait) -> &dyn Trait;
7373 | ^^^^^^^^^^ this type doesn't fit in the available registers
@@ -76,7 +76,7 @@ LL | type WithTraitObject = extern "cmse-nonsecure-call" fn(&dyn Trait) -> &dyn
7676 = note: the result must either be a (transparently wrapped) i64, u64 or f64, or be at most 4 bytes in size
7777
7878error[E0798]: return value of `"cmse-nonsecure-call"` function too large to pass via registers
79- --> $DIR/generics.rs:34 :60
79+ --> $DIR/generics.rs:35 :60
8080 |
8181LL | extern "cmse-nonsecure-call" fn(&'static dyn Trait) -> &'static dyn Trait;
8282 | ^^^^^^^^^^^^^^^^^^ this type doesn't fit in the available registers
@@ -85,7 +85,7 @@ LL | extern "cmse-nonsecure-call" fn(&'static dyn Trait) -> &'static dyn Tra
8585 = note: the result must either be a (transparently wrapped) i64, u64 or f64, or be at most 4 bytes in size
8686
8787error[E0798]: return value of `"cmse-nonsecure-call"` function too large to pass via registers
88- --> $DIR/generics.rs:41 :60
88+ --> $DIR/generics.rs:42 :60
8989 |
9090LL | extern "cmse-nonsecure-call" fn(WrapperTransparent) -> WrapperTransparent;
9191 | ^^^^^^^^^^^^^^^^^^ this type doesn't fit in the available registers
@@ -94,7 +94,7 @@ LL | extern "cmse-nonsecure-call" fn(WrapperTransparent) -> WrapperTranspare
9494 = note: the result must either be a (transparently wrapped) i64, u64 or f64, or be at most 4 bytes in size
9595
9696error[E0045]: C-variadic functions with the "cmse-nonsecure-call" calling convention are not supported
97- --> $DIR/generics.rs:44 :20
97+ --> $DIR/generics.rs:45 :20
9898 |
9999LL | type WithVarArgs = extern "cmse-nonsecure-call" fn(u32, ...);
100100 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ C-variadic function must have a compatible calling convention
0 commit comments