pub struct Nullable(T); pub trait NotNull {} pub trait IntoNullable { type Nullable; } impl IntoNullable for T { type Nullable = Nullable; } impl IntoNullable for Nullable { type Nullable = Nullable; } pub trait Expression { type SqlType; } pub trait Column: Expression {} #[derive(Debug, Copy, Clone)] //~^ ERROR the trait bound `::SqlType: NotNull` is not satisfied pub enum ColumnInsertValue where Col: Column, Expr: Expression::Nullable>, { Expression(Col, Expr), Default(Col), } fn main() {}