Skip to content

Commit

Permalink
Update ui tests
Browse files Browse the repository at this point in the history
  • Loading branch information
skinnyBat committed Oct 8, 2019
1 parent 16b7f44 commit 5986fe2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions src/test/ui/const-generics/fn-const-param-infer.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ error[E0308]: mismatched types
LL | let _: Checked<{not_one}> = Checked::<{not_two}>;
| ^^^^^^^^^^^^^^^^^^^^ expected `not_one`, found `not_two`
|
= note: expected type `Checked<>`
found type `Checked<>`
= note: expected type `Checked<not_one>`
found type `Checked<not_two>`

error[E0308]: mismatched types
--> $DIR/fn-const-param-infer.rs:20:24
Expand All @@ -36,8 +36,8 @@ error[E0308]: mismatched types
LL | let _: Checked<{generic::<u32>}> = Checked::<{generic::<u16>}>;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `generic::<u32>`, found `generic::<u16>`
|
= note: expected type `Checked<>`
found type `Checked<>`
= note: expected type `Checked<generic::<u32>>`
found type `Checked<generic::<u16>>`

error: aborting due to 4 previous errors

Expand Down
4 changes: 2 additions & 2 deletions src/test/ui/const-generics/raw-ptr-const-param.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ error[E0308]: mismatched types
LL | let _: Const<{15 as *const _}> = Const::<{10 as *const _}>;
| ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Scalar(0x000000000000000f) : *const u32`, found `Scalar(0x000000000000000a) : *const u32`
|
= note: expected type `Const<>`
found type `Const<>`
= note: expected type `Const<Scalar(0x000000000000000f) : *const u32>`
found type `Const<Scalar(0x000000000000000a) : *const u32>`

error: aborting due to previous error

Expand Down
4 changes: 2 additions & 2 deletions src/test/ui/feature-gates/feature-gate-const_generics-ptr.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
struct ConstFn<const F: fn()>;
//~^ ERROR const generics are unstable
//~^^ ERROR use of function pointers as const generic arguments are unstable
//~^^ ERROR using function pointers as const generic parameters is unstable

struct ConstPtr<const P: *const u32>;
//~^ ERROR const generics are unstable
//~^^ ERROR use of raw pointers as const generic arguments are unstable
//~^^ ERROR using raw pointers as const generic parameters is unstable

fn main() {}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ LL | struct ConstPtr<const P: *const u32>;
= note: for more information, see https://github.com/rust-lang/rust/issues/44580
= help: add `#![feature(const_generics)]` to the crate attributes to enable

error[E0658]: use of function pointers as const generic arguments are unstable
error[E0658]: using function pointers as const generic parameters is unstable
--> $DIR/feature-gate-const_generics-ptr.rs:1:25
|
LL | struct ConstFn<const F: fn()>;
Expand All @@ -25,7 +25,7 @@ LL | struct ConstFn<const F: fn()>;
= note: for more information, see https://github.com/rust-lang/rust/issues/53020
= help: add `#![feature(const_compare_raw_pointers)]` to the crate attributes to enable

error[E0658]: use of raw pointers as const generic arguments are unstable
error[E0658]: using raw pointers as const generic parameters is unstable
--> $DIR/feature-gate-const_generics-ptr.rs:5:26
|
LL | struct ConstPtr<const P: *const u32>;
Expand Down

0 comments on commit 5986fe2

Please sign in to comment.