Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: rust-lang/rust
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2467d405b9e9d48a447dfab101fbb466791cab00
Choose a base ref
..
head repository: rust-lang/rust
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 94a055263eb96bf7f692854a0d16ade2f65d3b27
Choose a head ref
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/test/compile-fail/issue32829.rs
6 changes: 3 additions & 3 deletions src/test/compile-fail/issue32829.rs
Original file line number Diff line number Diff line change
@@ -20,7 +20,7 @@ const bad_two : u32 = {
{
invalid();
//~^ ERROR: blocks in constants are limited to items and tail expressions
//~^^ ERROR: calls in constants are limited to constant functions, struct and enum constructors
//~^^ ERROR: calls in constants are limited to constant functions, struct and enum
0
}
};
@@ -44,7 +44,7 @@ static bad_five : u32 = {
{
invalid();
//~^ ERROR: blocks in statics are limited to items and tail expressions
//~^^ ERROR: calls in statics are limited to constant functions, struct and enum constructors
//~^^ ERROR: calls in statics are limited to constant functions, struct and enum
0
}
};
@@ -68,7 +68,7 @@ static mut bad_eight : u32 = {
{
invalid();
//~^ ERROR: blocks in statics are limited to items and tail expressions
//~^^ ERROR: calls in statics are limited to constant functions, struct and enum constructors
//~^^ ERROR: calls in statics are limited to constant functions, struct and enum
0
}
};