1 #### Note: this error code is no longer emitted by the compiler.
3 An attempt was made to access an associated constant through either a generic
4 type parameter or `Self`. This is not supported yet. An example causing this
14 impl Foo for MyStruct {
15 const BAR: f64 = 0f64;
18 fn get_bar_bad<F: Foo>(t: F) -> f64 {
23 Currently, the value of `BAR` for a particular type can only be accessed
24 through a concrete type, as shown below:
33 impl Foo for MyStruct {
34 const BAR: f64 = 0f64;
37 fn get_bar_good() -> f64 {
38 <MyStruct as Foo>::BAR