-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
42 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/test/ui/const-generics/const-param-before-other-params.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
// Checks that lifetimes cannot be interspersed between consts and types. | ||
|
||
struct Foo<const N: usize, 'a, T = u32>(&'a (), T); | ||
//~^ ERROR lifetime parameters must be declared prior to type or const parameters | ||
//~^ ERROR lifetime parameters must be declared prior to type and const parameters | ||
|
||
struct Bar<const N: usize, T = u32, 'a>(&'a (), T); | ||
//~^ ERROR lifetime parameters must be declared prior to type or const parameters | ||
//~^ ERROR lifetime parameters must be declared prior to type and const parameters | ||
|
||
fn main() {} |
4 changes: 2 additions & 2 deletions
4
src/test/ui/const-generics/defaults/intermixed-lifetime.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/test/ui/const-generics/defaults/param-order-err-pretty-prints-default.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
struct Foo<const M: usize = 10, 'a>(&'a u32); | ||
//~^ ERROR lifetime parameters must be declared prior to type or const parameters | ||
//~^ ERROR lifetime parameters must be declared prior to type and const parameters | ||
|
||
fn main() {} |
2 changes: 1 addition & 1 deletion
2
src/test/ui/const-generics/defaults/param-order-err-pretty-prints-default.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/test/ui/generics/issue-80512-param-reordering-with-defaults.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#![crate_type = "lib"] | ||
|
||
struct S<T = (), 'a>(&'a T); | ||
//~^ ERROR lifetime parameters must be declared prior to type or const parameters | ||
//~^ ERROR lifetime parameters must be declared prior to type and const parameters |
2 changes: 1 addition & 1 deletion
2
src/test/ui/generics/issue-80512-param-reordering-with-defaults.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
#![allow(unused)] | ||
fn first<T, 'a, 'b>() {} | ||
//~^ ERROR lifetime parameters must be declared prior to type or const parameters | ||
//~^ ERROR lifetime parameters must be declared prior to type and const parameters | ||
fn second<'a, T, 'b>() {} | ||
//~^ ERROR lifetime parameters must be declared prior to type or const parameters | ||
//~^ ERROR lifetime parameters must be declared prior to type and const parameters | ||
fn third<T, U, 'a>() {} | ||
//~^ ERROR lifetime parameters must be declared prior to type or const parameters | ||
//~^ ERROR lifetime parameters must be declared prior to type and const parameters | ||
fn fourth<'a, T, 'b, U, 'c, V>() {} | ||
//~^ ERROR lifetime parameters must be declared prior to type or const parameters | ||
//~^ ERROR lifetime parameters must be declared prior to type and const parameters | ||
|
||
fn main() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters