File tree 3 files changed +69
-0
lines changed
3 files changed +69
-0
lines changed Original file line number Diff line number Diff line change
1
+ #![ feature( generic_const_exprs) ]
2
+
3
+ pub trait Tr < PCS , const C : usize > {
4
+ fn foo ( bar : PCS ) { unimplemented ! ( ) ; }
5
+ }
6
+
7
+ pub struct Foo ;
8
+
9
+ pub const M : usize = 4 ;
10
+
11
+ impl < CS > Tr < CS , M > for Foo
12
+ {
13
+ }
Original file line number Diff line number Diff line change
1
+ //@ aux-build:generic-const-exprs-dep.rs
2
+ //@ compile-flags: --crate-type=lib
3
+ //@ failure-status: 101
4
+ //@ normalize-stderr: "note: .*\n\n" -> ""
5
+ //@ normalize-stderr: "thread 'rustc' panicked.*\n" -> ""
6
+ //@ normalize-stderr: "(error: internal compiler error: [^:]+):\d+:\d+: " -> "$1:LL:CC: "
7
+ //@ rustc-env:RUST_BACKTRACE=0
8
+
9
+ extern crate generic_const_exprs_dep;
10
+ use generic_const_exprs_dep:: { Tr , Foo } ;
11
+
12
+ pub fn build ( bar : ( ) ) {
13
+ Foo :: foo ( bar)
14
+ }
15
+
16
+ //~? ERROR Encountered anon const with inference variable args but no error reported
17
+ //~? ERROR Encountered anon const with inference variable args but no error reported
18
+ //~? ERROR Encountered anon const with inference variable args but no error reported
19
+ //~? ERROR Encountered anon const with inference variable args but no error reported
20
+ //~? ERROR Encountered anon const with inference variable args but no error reported
21
+ //~? ERROR Encountered anon const with inference variable args but no error reported
22
+ //~? ERROR Encountered anon const with inference variable args but no error reported
23
+ //~? ERROR Encountered anon const with inference variable args but no error reported
24
+ //~? ERROR Encountered anon const with inference variable args but no error reported
25
+ //~? ERROR Encountered anon const with inference variable args but no error reported
Original file line number Diff line number Diff line change
1
+ error: internal compiler error: Encountered anon const with inference variable args but no error reported
2
+ |
3
+ = error: internal compiler error: Encountered anon const with inference variable args but no error reported
4
+ |
5
+ = note: delayed at compiler/rustc_trait_selection/src/traits/mod.rs:596:27 - disabled backtrace
6
+ = error: internal compiler error: Encountered anon const with inference variable args but no error reported
7
+ |
8
+ = note: delayed at compiler/rustc_trait_selection/src/traits/mod.rs:596:27 - disabled backtrace
9
+ = error: internal compiler error: Encountered anon const with inference variable args but no error reported
10
+ |
11
+ = note: delayed at compiler/rustc_trait_selection/src/traits/mod.rs:596:27 - disabled backtrace
12
+ = error: internal compiler error: Encountered anon const with inference variable args but no error reported
13
+ |
14
+ = note: delayed at compiler/rustc_trait_selection/src/traits/mod.rs:596:27 - disabled backtrace
15
+ = error: internal compiler error: Encountered anon const with inference variable args but no error reported
16
+ |
17
+ = note: delayed at compiler/rustc_trait_selection/src/traits/mod.rs:596:27 - disabled backtrace
18
+ = error: internal compiler error: Encountered anon const with inference variable args but no error reported
19
+ |
20
+ = note: delayed at compiler/rustc_trait_selection/src/traits/mod.rs:596:27 - disabled backtrace
21
+ = error: internal compiler error: Encountered anon const with inference variable args but no error reported
22
+ |
23
+ = note: delayed at compiler/rustc_trait_selection/src/traits/mod.rs:596:27 - disabled backtrace
24
+ = error: internal compiler error: Encountered anon const with inference variable args but no error reported
25
+ |
26
+ = note: delayed at compiler/rustc_trait_selection/src/traits/mod.rs:596:27 - disabled backtrace
27
+ = error: internal compiler error: Encountered anon const with inference variable args but no error reported
28
+ |
29
+ = note: delayed at compiler/rustc_trait_selection/src/traits/mod.rs:596:27 - disabled backtrace
30
+ = query stack during panic:
31
+ end of query stack
You can’t perform that action at this time.
0 commit comments