Canada has announced plans to phase out the use of coal-fired electricity by 2030.