Skip to content

Commit 61f35f0

Browse files
committed
Adjust generic const param resolution
1 parent bbdcc4e commit 61f35f0

File tree

4 files changed

+65
-152
lines changed

4 files changed

+65
-152
lines changed

src/librustc_resolve/diagnostics.rs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1642,20 +1642,6 @@ fn main() {
16421642
```
16431643
"##,
16441644

1645-
E0670: r##"
1646-
Const parameters cannot depend on type parameters.
1647-
The following is therefore invalid:
1648-
1649-
```compile_fail,E0670
1650-
#![feature(const_generics)]
1651-
1652-
fn const_id<T, const N: T>() -> T {
1653-
// ERROR: const parameters cannot depend on type parameters
1654-
N
1655-
}
1656-
```
1657-
"##,
1658-
16591645
}
16601646

16611647
register_diagnostics! {

0 commit comments

Comments
 (0)