File: const_idents.actual

package info (click to toggle)
golang-github-alecthomas-chroma-v2 2.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 7,980 kB
  • sloc: xml: 33,149; python: 589; javascript: 357; makefile: 36; sh: 36
file content (10 lines) | stat: -rw-r--r-- 199 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
const IM_A_CONST: () = ();

fn main() {
    dbg!(IM_A_CONST);
}

// None of this should be considered const
fn foo<T0, T1, U>(_: (T0, T1, U)) {
    let _: std::collections::BTreeSet<()> = todo!();
}