1 error[E0277]: the trait bound `T: GlUniformScalar` is not satisfied
2 --> $DIR/assoc-const-as-fn.rs:14:40
4 LL | <T as GlUniformScalar>::FACTORY(1, value);
5 | ------------------------------- ^^^^^ the trait `GlUniformScalar` is not implemented for `T`
7 | required by a bound introduced by this call
9 help: consider further restricting this bound
11 LL | pub fn foo<T: UniformScalar + GlUniformScalar>(value: T) {
14 error: aborting due to previous error
16 For more information about this error, try `rustc --explain E0277`.